Hi I copied and pasted what I currently have. Is there a facebook like button and twitter share button without a counter? Also I played around with the width (375px) but still haven't figured out how to get the spacing the same for each button. Some look more spread apart than the others.
<style>
div.addthis_toolbox {
width: 375px;
margin: 0 auto;
}
</style><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-5013bf9e5eea81a5"></script>
<script type='text/javascript'>
document.doAT = function(cl)
{
var myclass = new RegExp('hentry');
var myTitleContainer = new RegExp('post-title');
var myPostContent = new RegExp('post-footer');
var elem = this.getElementsByTagName('div');
for (var i = 0; i < elem.length; i++)
{
var classes = elem[i].className;
if (myclass.test(classes))
{ var container = elem[i];
for (var b = 0; b < container.childNodes.length; b++)
{
var item = container.childNodes[b].className;
if (myTitleContainer.test(item))
{
var link = container.childNodes[b].getElementsByTagName('a');
if (typeof(link[0]) != 'undefined')
{
var url = link[0].href;
var title = link[0].innerHTML;
}
else
{
var url = document.url;
var title = container.childNodes[b].innerHTML;
}
if (typeof(url) == 'undefined'|| url == 'undefined' ){
url = window.location.href;
}
var singleq = new RegExp("'", 'g');
var doubleq = new RegExp('"', 'g');
title = title.replace(singleq, ''', 'gi');
title = title.replace(doubleq, '"', 'gi');
}
if (myPostContent.test(item))
{
var footer = container.childNodes[b];
}
}
var n = document.createElement('div');
var at = "<div class='addthis_toolbox addthis_default_style ' addthis:title='"+title+"' addthis:url='"+encodeURI(url)+"' > <a class='addthis_button_facebook_like' fb:like:layout='button_count'></a> <a class='addthis_button_tweet'></a> <a class='addthis_button_pinterest_pinit'></a> <a class='addthis_counter addthis_pill_style'></a> </div> ";
n.innerHTML = at;
container.insertBefore(n , footer);
}
}
return true;
};
document.doAT('hentry');
</script>
The code for the Tweet button without the counter is:
<a class='addthis_button_tweet' tw:count='none'></a>
To hide the Facebook Like button counter you need to add this style code to your page:
<style>
.addthis_button_facebook_like {
overflow:hidden;
width: 45px !important;
}
</style>
You can adjust the width using similar CSS code and the button classes.
This question is closed to new answers.