≡ Menu

[How-to Guide] Add Facebook Like Button to Your Blog

Facebook and Twitter are going head to head in their attempts for web domination. Now facebook has released their “Like” button. The Facebook like button extends their like feature to other sites on the web. If the users are logged into their facebook account, then they can “like” or “recommend” a web page to all of their facebook friends as they are reading it from the site. In this article i will show you that how you can add facebook like button without installing any WordPress plugin. All you need to do is to insert this simple code in your WordPress blog:


<iframe src=”http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:450px; height:60px;”></iframe>

There are other parameters and options for this plugin.

  • If you want to show the friend icons under the button, then you should use the parameter:


  • If you want to display the simple button with only the count and nothing else, then you want to use the parameter:


  • If you want a darker color scheme for your button, then you need to use the parameter:


  • If you want to change the text from Like to Recommend, then use the parameter:


You can customize the width of the iFrame as you like.

This tutorial will help you to put facebook like button without any help of plugin and will save you from installing a one more plugin in your WordPress blog. In the end, if you like this tutorial then you like WebGuide4U on Facebook.

{ 0 comments… add one }

Leave a Comment