How To Integrate Tweetmeme Without A Plug-in

The Tweetmeme Plug-in is one of the many wordpress/blogger plug-ins out there that is known to help generate traffic via the now larger than life, Twitter.

I installed the plug-in on my blog like 3 weeks ago and was immediately irritated by the fact that the plug-in’s configuration page didn’t have options as to where I wanted the button to appear and not to appear. The button was on every page of my blog including the contact, about me, sitemap, category and you name it pages.

Luckily I was wise enough to check the official website of the plug-in and found out how to implement the tweetmeme button without having to install the plug-in on my WordPress blog and Blogger blog.

For Self Hosted WordPress Blogs: Below is the code I added in my single.php file of my theme, right after the <?php the_content(“<p>Read the rest of this entry &raquo;</p>”); ?> tag. Please note that this code doesn’t appear on the Tweetmeme official site this way. I’ve modified it a little to suit me.

<div class=”tweetmeme_button”>
<script type=”text/javascript”>
tweetmeme_url = ‘<?php the_permalink(); ?>’;
tweetmeme_source = ‘your twitter id’;
</script>
<script type=”text/javascript” src=”http://tweetmeme.com/i/scripts/button.js”></script>
</div>

For Blogger Blogs: Simply log into your account. In dashboard, click on Layout tab then Edit HTML tab. When you’re there, tick ‘Expand Widget Templates’ box and wait for page to reload. Look for the tag: <data:post.body/> then paste the code below after it.

<script type=”text/javascript”>
tweetmeme_url = ‘<data:post.url/>’;
tweetmeme_source = ‘your twitter id’;
</script>
<script type=”text/javascript” src=”http://tweetmeme.com/i/scripts/button.js”></script>

Remember to fill in your twitter id. Hope you enjoy this button and the load it takes off your server unlike if you were to be using the plug-in.

This post was created after carefully studying the following posts

  1. Integrating The Tweetmeme button into Blogger.
  2. Tweetmeme Button.
  3. Integrating The Tweetmeme button into WordPress

Update: The new version of the tweetmeme plug-in now has options to remove the button from certain pages of your blog. At the time of writing this post, it didn’t have those features. My bad. ;) . Sorry for any inconvenience caused.

    <div class="post-footer">


    Related Articles You May Like To Read
    1. Top 4 Reasons For Never Blogging Without Twitter
    2. How To Add A Floating Bookmarks Panel To Your Blog
    3. Top 3 Dofollow WordPress Plug-ins For Dofollow Blogs
    4. How To Secure WordPress Blogs With Plug-ins
    5. SOB’s Top 5 WordPress Plug-in Alternatives

    Disclosure: Please note that each time you make a purchase via any referral link on this site, I make a commission. Click here for more info.


    9 Comments so far. Leave Yours Below

    If you want to ask a question regarding anything from blogging to making money online and wordpress plugins tips, do please make use of the floating search bar at the bottom of this site. If you don't find what you're looking for, then feel free to ask your question

    ALL COMMENTS WITH KEYWORDS AS NAMES WILL BE DELETED! TAKE NOTE!


    Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.


    1. Deni says:

      thank for share
      i like this posting
      regard…

    2. I’m installing this on a couple of my wordpress sites so thanks for this, very helpful. I’ve also been trying out the commentluv and keywordluv plugins, so far quite good, lots of real people!
      .-= Mike@Best Workout Reviews´s last blog ..Fast Muscle Building Workouts =-.

    3. Chris says:

      I just wanted to post a comment thanking you for writing this entry. For some reason my theme or some of the plugins that I use on my blog conflict with the Tweetmeme and Facebook Share plugins, and I’ve been driving myself crazy over the past couple of months trying to figure out how to integrate the buttons into my blog. This post really helped. So, thanks.

    4. Ian says:

      The code that the plugin spits out is completely invalid, so I am still preferring this method.

    5. Web Hosting says:

      Hah! I have been wondering how I could add a Tweeter button to wordpress blog! Thanks a lot! And thank God for Tweeter, it has made the worldwide communication so much easier and fun!

    6. awesome. there are all kinds of cool tricks here. i hated the plugin too, and had just given up.