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......
  • Ubuntu Linux Software Raid - Replacing a Failing Drive Sometime back I setup my home server running Ubuntu Linux (6.06 - Dapper Drake LTS). I used two pairs of drives to do raid cloning. Two IDE drives were for the main system structure and two SATA drives for Audio/Video storage as well as CDimages and other large file sharing......
  • Microsoft launches start page test to compete with Google's start page When I first saw the MSN search page I had to smirk. It reminded me much of the Google search page. It was a nice "clean" layout, take away the blue background and the similarities would be greater. Of course my first thought was. "OK they're copying google." or at......
Blog Traffic Exchange Related Websites
  • Increase your pull-up numbers The pull-up is a fantastic exercise. It has a simplicity like few other exercises yet it does wonders for your upper body. Unfortunately, it is often overlooked and skipped out on. Few people at the gym will actually do pull-ups as part of their workout. Perhaps this is partly because......
  • SaudiJobsNet document.write(''); Job Searching Requires a Competitive Edge Many people are looking for exciting over seas work opportunities. SaudiJobsNetwork provides listings of thousands of over seas job opportunities and the information you need to land those dream jobs. Click here for current job listings.document.write(''); Free Registration Increase your chances of......
  • Understanding The Various Layers Of Web Development To realise web development fully, you first must understand what goes in to this process layer by layer. Here's what you have to know about it. One of the most important layers of web development is content. This is the main thing that pulls people to your site and this......
www.pdf24.org    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