WordPress Tweaks & Tuts?

Subscribe to TheCreatology via RSS | Email

How to add facebook like button on post page in Thesis Theme ?

by Aky Joe

I have already mentioned about facebook like button for wordpress and in this article we will learn to add like button in thesis theme.


Get Thesis Theme Now

As we all know about Thesis Theme and its content management as well SEO capabilities. Though it is a simple wordpress theme allowing endless customization for wordpress blog. If you don’t have a copy of Thesis Theme then you can download thesis theme here.  If you are using an old version of Thesis Theme then I recommend you to safely upgrade thesis theme.

Add Facebook Like button in Single post

As we all know that Thesis customization is done using thesis hooks which are overriding functions. To show like button in single post, copy-paste the code snippet in the custom_functions.php.

Make sure you take full backup of custom_functions.php file using FTP before modifying it.

function joe_adds_like_btn ()  {
if (is_single()) { ?>
<div style="float:right; margin:0 10px;">
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID));?>&amp;layout=button_count&amp;show_faces=false&amp;width=90&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:90px; height:25px;"></iframe>

Save the custom_functions.php file, once you are done adding the above code. Now upload the edited file on server using ftp client and when you will refresh website, you will find something like in screenshot below.


Facebook Like button on Single Post

As we have added facebook like button in thesis theme, we come to the end of this article. If you have any queries then you can post comment below as your feedback.

Similar Topics: , ,

TheCreatology Support

Got a Query? We're ready, Just Say it!

If you have a doubt or a feedback, then get-in-touch with TheCreatology Support Team now.

Start a Hangout or Email Us

Are you looking for...

  • Logo Design
  • Web Development
  • Thesis Skin Design
  • Graphic Designing
  • Virtual Assistance
Hire Us!

No Comments

{ read them below or add one }

Leave a Comment

Previous post:

Next post:

Contact Aky

Yes, I agree that all information above is valid.

Simple question, what's...