javascript - addThis smart api layer add a link -


i add new button link custom url on addthis slidebar generated using addthis smart layer api (you can have @ documentation here)

i add custom service link precise page. possible?

here sample of code use generate side bar.

addthis.layers({     'theme': 'transparent',     'share': {          'position': 'left',          'services': 'facebook,twitter,google_plusone_share,pinterest_share,print,more'     } }); 

is possible?

although it's not particularly helpful hear, don't think can accomplished addthis smartlayers api @ time. may have found differently though, in case i'm curious hear how figured out it.

after perusing docs , playing solid amount of time can't figure out way insert new option services on of layers (share, follow, what's next, or recommendation layers). way think adding service of smartlayers work submit addthis officially approved.

on bottom of this page can submit new services addthis implemented api completely. massive downside in terms of problem submitted service needs oexchange compatible. projects may not feasible, might not of roadblock if you're free implement compatibility in whatever web application want add services.

small discussion api.

addthis' platform based around being able show relevant marketing users, , making custom buttons/services discouraged addthis. try encourage developers use built in personalization saying things such as:

we encourage you, however, take advantage of automatic menu , toolbox personalization. you'll see increase in overall sharing of 20%, particularly site's international visitors, use many of our other hundreds of sharing services!

i think why addthis not customizable service on planet. @ boasts, showing relevant marketing users.

the workaround

these may aspects of api you're familiar , know how use figure can't hurt providing them since answer proposed question "probably not".

you can make addthis refers toolbox of buttons , put service anywhere in mix. done using html instead of javascript , looks "default" toolbox:

<div class="addthis_toolbox addthis_default_style">     <a class="addthis_button_preferred_1"></a>     <a class="addthis_button_preferred_2"></a>     <a class="addthis_button_preferred_3"></a>     <a class="addthis_button_preferred_4"></a> </div> 

this produces clickable sharing service links top 4 preferred services decided addthis.

the output above code.

now let's make 1 of these buttons our own. use stackoverflow.com example.

<div class="addthis_toolbox addthis_default_style">   <a class="addthis_button_stackoverflow" href="http://www.stackoverflow.com">   <img src ="http://fc06.deviantart.net/fs70/f/2012/099/d/f/stackoverflow_16x16_icon_by_muntoo_stock-d4vl2v4.png" width="16" height="16" border="0">   </img>   </a> <a class="addthis_button_preferred_2"></a> <a class="addthis_button_preferred_3"></a> <a class="addthis_button_preferred_4"></a> </div> 

this code produces clickable stack overflow button alongside top buttons suggested addthis!

we made our own button!

although isn't you're looking exactly, hope helps!


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -