Walker News

How To Add ShareThis Widget In New Blogger Template

It’s true that ShareThis social bookmarking widget is compatible with WordPress plugin as well as most other HTML-based websites/weblogs (in the form of JavaScript)!

But, there might be some frustrations and doubts among users who want to embed the ShareThis JavaScript in the New Blogger template (HTML template).

For example, after adding the original ShareThis JavaScript widget in New Blogger template, the Save Template action will be rejected with this similar error message:
We were unable to save your template
Please correct the error below, and submit your template again.
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 reference to entity “charset” must end with the ‘;’ delimiter.

(Similar error message also appears when saving the original Adsense code in New Blogger Template!)

In order to successfully add in ShareThis JavaScript in New Blogger Template, you can follow this little HTML hack to tweak the ShareThis JavaScript snippet, i.e.

Replace these characters in the snippet with their HTML code
  • Replace < with &lt;
  • Replace > with &gt;
  • Replace & with &amp;

Thus, suppose this is the original ShareThis JavaScript:
<script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=web%2Cemail&charset=utf-8&services=facebook%2Cdigg%2Cstumbleupon%2Cdelicious%2Creddit%2Cblinklist%2Cnewsvine%2Cfurl%2Ctailrank%2Cmagnolia%2Cgoogle_bmarks%2Cwindows_live%2Cblogmarks%2Ctechnorati%2Cyahoo_myweb&style=default&publisher=16aba2a7-dbb3-4af7-9f98-a3d0aa731783"></script>

Then, after applying the HTML hack, this will be the tweaked ShareThis JavaScript snippet to embed in New Blogger template:
&lt;script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=web%2Cemail&amp;charset=utf-8&amp;services=facebook%2Cdigg%2Cstumbleupon%2Cdelicious%2Creddit%2Cblinklist%2Cnewsvine%2Cfurl%2Ctailrank%2Cmagnolia%2Cgoogle_bmarks%2Cwindows_live%2Cblogmarks%2Ctechnorati%2Cyahoo_myweb&amp;style=default&amp;publisher=16aba2a7-dbb3-4af7-9f98-a3d0aa731783"&gt;&lt;/script&gt;

(So, WordPress VS New Blogger, which is the better weblog platform?)

Custom Search

  1. How To Embed Adsense Search In New Blogger Template – Walker News 11-11-07@01:33

    […] In order to successfully embed and save the Adsense Search code in the New Blogger HTML template, the same little HTML hack has to be applied (similar with How to add ShareThis JavaScript Snippet into New Blogger template?): […]

  2. How to Add Recent Comments In New Blogger Template – Walker News 11-11-07@17:46

    […] another most wanted widget but is not explicitly made available in New Blogger template (similar to social bookmarking widget for New Blogger)! Though, there are not short of 3rd party solutions on this topic. One of these will be using the […]

2017  •  Privacy Policy