Friday, March 9, 2012

How to remove “addthis” from homepage, Blogger.

When you add “addthis” button to your blog you are not going to find its html code in the “edit html”. Addthis will appear as an HTML/Java script widget, and to find it you should go to “Design” >>“Page element”. It is very simple you just have to follow these steps.

Open any HTML/Java script widget and as soon as you see its mentioning addthis.com in the widget then you’ll know it’s this one I am talking about. The widget will look like below.



Now you see the highlighted code on the top of the widget just go till the end and like you noticed for mine HTML1 is the name of the widget which corresponds to addthis. Now,
•    Go to Design >> Edit HTML
•    Check Expand Widget Templates
•    Search for the HTML(for e.g. mine was HTML1) in your template by using Ctrl+f in your browser
•    Add the following lines to your code( those in Red)

<b:widget id='HTML1' locked='false' title='' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<data:content/>
</b:if>
</b:includable>
</b:widget>
Henceforth, addthis will appear only on your posts and your static pages will be free from it! :-)

3 comments:

  1. After adding the code to the template, when I try to save the template I get the following error:
    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: The element type "b:section" must be terminated by the matching end-tag "".
    Any ideas ?

    ReplyDelete
  2. @ edoron777
    Hi, the element type "b:section" must be terminated by the end-tag "</b:section>". Before editing do not forget to expand your Widget Templates first. Normally the template should already contained the closing tag for b:section. Scroll till you find these closing tags in the same section where you've added the code and see if yours lacks any end-tags.
    </b:includable>
    </b:widget>
    </b:section>
    </div>

    I hope this might help.

    ReplyDelete
  3. Thanks very much for the advice. I uncovered the offending widget in my sidebar, removed it and now I am complety free of Add This, especialy Pinterest.

    ReplyDelete