I am working on a project that requires we build custom sharing buttons with counts that display above them…this is the code I am using that I follow instructions on from ShareThis.com
<div class=“shareholder fright clearfix”>
<div class=“st_sharethis_custom box boxsharethis fleft”><span id=“sharecount”></span></div>
<div class=“st_twitter_custom box boxtwitter fleft”><span id=“twitcount”></span></div>
<div class=“st_facebook_custom box boxfacebook fleft”><span id=“fbcount”></span></div>
<div class=“st_pinterest_custom box boxpinterest fleft”><span id=“pcount”></span></div>
<div class=“st_googleplus_custom box boxgoogleplus fleft”><span id=“gpluscount”></span></div>
</div>
<script type=“text/javascript” src=“http://wd.sharethis.com/button/buttons.js”></script>
<script type=“text/javascript”>
stLight.options({publisher:‘e9cfe4f1-9ef0-4fcc-9e38-abe46621532c’});
stButtons.getCount(“http://sharethis.com”,“facebook”,document.getElementById(‘fbcount’));
//(url,service,elemnt)
stButtons.getCount(“http://sharethis.com”,“twitter”,document.getElementById(‘twitcount’));
stButtons.getCount(“http://sharethis.com”,“pinterest”,document.getElementById(‘pcount’));
stButtons.getCount(“http://sharethis.com”,“googleplus”,document.getElementById(‘gpluscount’));
stButtons.getCount(“http://sharethis.com”,“sharethis”,document.getElementById(‘sharecount’));
</script>
Which produces these results (see attachment).
The problem is that the counts that appear above the social icons are not coming from our publisher account, the numbers are the same on EVERY page we have this displaying on. I have double checked my publisher id in the code above 10 times and it’s correct so I have no idea why this is happening…please help!