Removing from Blogger

annaleise_hall Jul 12, 2012 03:04PM EDT

Ok, so I've seen this answered...to remove the widget, find it in the layout of Blogger...no such luck. There is no AddThis on my layout page. I added two different button types, but only want to keep the first. Please help. www.aptitudeability.com

Up 0 Rated Down
Sol (AddThis Happiness Specialist) Jul 13, 2012 03:30PM EDT
Since it's showing up under your blog post, look in the Layout section under the "Blog Posts" block. It may not be named AddThis, so you might have to click "Edit" and look at the contents of the widget to find the one you want to remove. You should see Javscript code similar to the code I pasted below. The easiest way to figure out which widget belongs with which set of buttons, add a title to the contents of the widget like "Button1" and "Button2" and you can match them up and remove the right set of buttons. I hope this helps, if you are still having problems, please let me know.

<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4ee0224503c60b3d"></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, '&#39;', 'gi');
title = title.replace(doubleq, '&#34;', '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_32x32_style' addthis:title='"+title+"' addthis:url='"+encodeURI(url)+"' > <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> <a class='addthis_button_compact'></a> <a class='addthis_counter addthis_bubble_style'></a> </div> ";
n.innerHTML = at;
container.insertBefore(n , footer);
}
}
return true;
};

document.doAT('hentry');
</script>

This question is closed to new answers.

Still need help?


General Topics

 

Developers