How to Add TweetMeme and Facebook button in Thesis WordPress Theme

by Surender on April 24, 2010 · 24 comments

in Blog Design,Blogging Tools,Facebook,How To,Plugins,Social Media,Twitter,Wordpress

Technogati has covered some WordPress thesis theme customization topics previously.

1. How To Display Adsense Ads After Post in Thesis Theme

Below is the function which is displaying the Google adsense ads at the bottom of the post……

2. Professional Bloggers Runs Their Blogs On WordPress Thesis Theme

I have collected the detail of some Pro bloggers those are running their blog on WordPress thesis theme…………

facebook button tweetmeme button hook thumb How to Add TweetMeme and Facebook button in Thesis Wordpress ThemeI love Thesis wordpress theme like a mad guy because of its excited and easily customization features.

You have noticed that just next to my post title I have added social media icons like TweetMeme button and Post on Facebook button.

Actually it has not done with WP plugin but it is optimized by Thesis custom hook.

I have already mentioned that Thesis is very easy to customize without any programming knowledge.Let me share that how to add TweetMeme button and Post on Facebook button in your WordPress thesis theme:

Note : Copy the following facebook image and upload in your following folder  custom/image/

fbpost thumb How to Add TweetMeme and Facebook button in Thesis Wordpress Theme

Open your custom_functions.php file and paste the following code:

/* Custom facebook BTN before title Hook */
function add_meme_fb_btn ()  {
if (is_single()) { ?>
<div style="float:right; padding-left:3px;"><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js">
</script>&nbsp;&nbsp;<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a href="http://www.facebook.com/share.php?u=< >" onclick="return fbs_click()" target="_blank"><img src="http://technogati.com/wp-content/themes/thesis_151/thesis_151/custom/images/fbpost.jpg" alt="" /></a></div>

<?php
   }
}
add_action('thesis_hook_before_headline','add_meme_fb_btn');

You can give the more freedom to your blog readers to post your blog on Facebook and ReTweet it easily with a single click.Give the opportunity to your readers to promote your blog post on Facebook and Twitter.

Have you any related idea ? You can share your related ideas in comment section or if you have any questions related any issue you can ask on WordPress Discussion Forum.


Here’s some of what you missed so far

About the Author

{ 5 trackbacks }

How to Add TweetMeme and Facebook button in Thesis Wordpress Theme … – The Facebook News
September 16, 2009 at 10:17 pm
How to Add TweetMeme and Facebook button in Thesis Wordpress Theme | WP Citrus
September 17, 2009 at 12:15 am
How to Add TweetMeme and Facebook button in Thesis Wordpress Theme … – The Facebook News
September 17, 2009 at 3:33 am
Rookie Mistake | The Life of an Insurance Salesman
November 30, 2009 at 10:17 pm
links for 2010-02-04 « Free Open Source Directory
February 5, 2010 at 6:35 am

{ 19 comments… read them below or add one }

1 Een Rockstar September 16, 2009 at 11:44 pm

Can’t wait to use thesis theme~ seems like a lot of things that I can do with it..
Een Rockstar´s last blog ..My First WOP – What Kind Of Topic Do You Want Me To Write? My ComLuv Profile

Reply

2 steppinout September 17, 2009 at 12:39 am

Nice and easy tut. But sadly I’m not using Facebook. Is it good?
steppinout´s last blog ..50 High Quality Social Media Icons For Free My ComLuv Profile

Reply

3 Ricky September 17, 2009 at 8:57 am

I am trying to figure out that how to use this function in normal theme.

Reply

4 Technology Blog September 17, 2009 at 10:16 am

These easily accessible buttons for twitter and Facebook and very much helpful in spreading your post on these social networks. Nice info for thesis users.
Technology Blog´s last blog ..Expand The Short URLs On Twitter Itself To Check Original Long URL My ComLuv Profile

Reply

5 china wholesale September 24, 2009 at 3:12 pm

thanks for your sharing

Reply

6 Nash October 3, 2009 at 1:50 am

Awesome post mate….thnx!

Reply

7 Adam October 21, 2009 at 2:36 am

Thanks for this…I’ve been using it for several weeks now. But all of a sudden, a few days ago, my tweet counts all went to zero and now, if I add a new tweet with the URL to my post, it doesn’t add to the tweet count on the button.

Any idea what might be going on? Has anyone else seen this? I thought maybe Tweetmeme was just down, but it’s been two days now and I can’t find anything on their end to indicate they’re having problems…

Reply

8 Tinh October 27, 2009 at 10:11 am

How do I make like yours, I know Facebook has widget for this but how can I integrate in my blog and show the numbers of shares. Thanks
Tinh´s last blog ..1&1 Hosting: 50% Off special offer ends October 31st! My ComLuv Profile

Reply

9 Surender October 27, 2009 at 10:14 am

Hi there,
I’ll publish the tutorial about the question you asked soon.

Reply

10 Rajesh Kanuri @ TechCats January 4, 2010 at 3:36 pm

could you please tell the way to display share count of facebook
Rajesh Kanuri @ TechCats´s last blog ..What is The Best Platform For Blogging? WordPress Vs Blogspot My ComLuv Profile

Reply

11 Tinh October 27, 2009 at 10:25 am

Here is the link so hope you can help us. Thanks

http://www.facebook.com/facebook-widgets/share.php
Tinh´s last blog ..1&1 Hosting: 50% Off special offer ends October 31st! My ComLuv Profile

Reply

12 Rajesh Kanuri @ TechCats January 4, 2010 at 3:50 pm

just checked count no is displaying only after getting 2 and more shares for facebook..
Rajesh Kanuri @ TechCats´s last blog ..What is The Best Platform For Blogging? WordPress Vs Blogspot My ComLuv Profile

Reply

13 Adrianne November 3, 2009 at 4:21 pm

I also have found a much easier way in case you would like to add your ReTweets without any programming or having to scroll through the Edit HTML which is kind of time consuming.

I know when I tried this I ran into the Template cannot be parsed error but there’s actually a way around it:

How to fix the “Your template could not be parsed”
Adrianne´s last blog ..How to add TweetMeme to Blogger [ Solution to your template could not be parsed ] My ComLuv Profile

Reply

14 Jagoinvestor December 3, 2009 at 6:19 pm

Thanks :)

I used this and I got it .. I was searching for this from long time and finally i was able to do it .

Manish
Jagoinvestor´s last blog ..Questions and Answers , Part 5 My ComLuv Profile

Reply

15 Rajesh Kanuri @ TechCats January 4, 2010 at 3:21 pm

Thanks for the code… this helped me in making things better..

Reply

16 Sourish May 9, 2010 at 1:21 am

you have a comment trouble

Reply

17 Sourish May 9, 2010 at 1:23 am

its taking to 404 error page

Reply

18 Caniyith May 15, 2010 at 12:07 pm

Hi Guys, Visited this forum / www.technogati.com once or twice and I see a few familiar faces, so i figure registering and saying hello is the wise thing to do

Big thanks to the Admin, I enjoy reading for a long time, thanks guys.. thumbs up and keep the good work.

Reply

Leave a Comment

CommentLuv Enabled


Page 1 of 0