The href values are getting swapped while clicking on facebook or twitter link

sarwat.faroze Jul 05, 2012 05:42AM EDT

Hi,

We are using your javascript but giving our own image and title as our title needs to be translated for different languages. It is working fine but sometimes the facebook icon leads to twitter and twitter leads to googleplus and vice versa. We have these three sharing button on our page.
Kindly guide me on this.

Thanks,

Code
-------
<div class="addthis_toolbox addthis_default_style" >
<a class="addthis_button_preferred_1" rel="nofollow" title='abc'><CCIT.Tridion.Web:Image ID="Image1" runat="server" ImageUrl="/social/social_bar_facebook.png" AltKey="social_facebook_button" /></a>
<a class="addthis_button_preferred_1" rel="nofollow" title='abc'><CCIT.Tridion.Web:Image ID="Image2" runat="server" ImageUrl="/social/social_bar_twitter.png" AltKey="social_twitter_button" /></a>
<a class="addthis_button_preferred_1" rel="nofollow" title='abc'><CCIT.Tridion.Web:Image ID="Image3" runat="server" ImageUrl="/social/social_bar_google.png" AltKey="social_googleplus_button" /></a>
</div>
<CCIT.Tridion.Html:Script runat="server" ID="scriptAddThis" UseCDN="false" Source="http://s7.addthis.com/js/250/addthis_widget.js#async=1" type="text/javascript" />

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Jul 06, 2012 02:59PM EDT
If you were using the default AddThis configuration it's using what we call Preferred Services. These are different for each individual based on their past sharing history and what services are most popular in our service. These are designed to increase sharing by showing users the services they use most often.

If you want to specify which services are displayed, you can do it by using a service code instead of preferred. Here's your code with the buttons modified to use the service codes:

<div class="addthis_toolbox addthis_default_style" >
<a class="addthis_button_facebook" rel="nofollow" title='abc'><CCIT.Tridion.Web:Image ID="Image1" runat="server" ImageUrl="/social/social_bar_facebook.png" AltKey="social_facebook_button" /></a>
<a class="addthis_button_twitter" rel="nofollow" title='abc'><CCIT.Tridion.Web:Image ID="Image2" runat="server" ImageUrl="/social/social_bar_twitter.png" AltKey="social_twitter_button" /></a>
<a class="addthis_button_google" rel="nofollow" title='abc'><CCIT.Tridion.Web:Image ID="Image3" runat="server" ImageUrl="/social/social_bar_google.png" AltKey="social_googleplus_button" /></a>
</div>
<CCIT.Tridion.Html:Script runat="server" ID="scriptAddThis" UseCDN="false" Source="http://s7.addthis.com/js/250/addthis_widget.js#async=1" type="text/javascript" />

This question is closed to new answers.

Still need help?


General Topics

 

Developers