Share This Plugin not Working in Some Themes



I’ve started adding the Share This plugin to several of my sites and was frustrated on one site to see on the front page “SHARETHIS.addEntry(” and a lot more ugly text. Upon investigation the < script tag enclosing the SHARETHIS javascript. So, I went on an investigation. I looked in the share this forums and found some people reporting the same problem with no real solutions.


I tested putting the javascript in the header manually. That didn’t solve it. I tried disabling other plugins and that didn’t work.

Finally, I compared the source of the working page and the non working page and that’s when I saw that the enclosing script tags were missing. So, I started looking at the template tag right before the sharethis plug. I noticed that the working site had <?php the_content(‘Read the rest of this entry »’); ?> the one that wasn’t working was using the rss head of the article to get the summary text on the front page. <?php the_content_rss(‘…. so I replaced that bit and the sharethis plugin started working on the front page.

I like this because it also solved the problem I had with the popularity contest plugin not working.

Related Posts

Blog Traffic Exchange Related Posts
  • Browser competition, market decisions and open standards I just read a blog entry at zdnet. The writer, John Carroll, essentially asserts that the free market has chosen that monopoly in the case of the web browser IS what's best for it. There are a few things that I think he fails to take into account in his......
  • Wordpress "siblings" released... bbpress and mupress There are a couple new software packages in wordpress' family: MuPress which is a multiuser (and multi-site) wordpress archicture... is available. IF that had been available a year ago, I might have based my sites on it, because it sounds as though you could have one backend for several sites.......
  • Wordpress 2.0 first impressions Given that I've now had a chance to use Wordpress 2.0 a bit, I thought I'd do a couple posts on some of my impressions. For starters, I'm quite fond of the interface for 1.5.2 that I use here. It's comfortable, I've added a few plugins to make life easier......
Blog Traffic Exchange Related Websites
  • Yaeger:CPA Review Nearly 41,000 people fail the CPA exam every single year. But you don’t have to be one of them. And let’s face it, in times like these – you really can’t afford to be one of them. Now, don’t get me wrong. It takes hard work to pass the CPA......
  • Top 5 Most Common Mistakes With Do-it-yourself SEO I look at a lot of sites on a daily basis. There are a lot of common problems I see on sites. Some people may have tags set-up improperly or use tags that have no real purpose. I have compiled a list of the 5 top do-it-yourself SEO errors. It's......
  • These Wordpress Plugins May help Wordpress Plugins You May Need Image by teddy-rised via Flickr I have been asked many different times from new bloggers what plugins they should use. I think a big part of it comes down to personal taste.  While there are some essentials many of them are just add-on plugins......
PDF24    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site