• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WebGuide4U

Photoshop | WordPress | Webhosting | Web Designing | Discount Coupon

  • About Us
    • Author
  • Advertise
  • Free WordPress Installation
  • Contact Us
  • About Us
    • Author
  • Advertise
  • Free WordPress Installation
  • Contact Us

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

June 25, 2010 //  by Jitesh//  Leave a Comment

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:

Code:

<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:

show_face=true

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

layout=button_count

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

colorscheme=dark

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

action=recommend

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.

Filed Under: How-To, Tips and Tricks, Tutorials, WordPress

Previous Post: « [How to Guide] Installing WordPress on Hostgator
Next Post: Advantages And Disadvantages of VPS Hosting »

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

All rights Reserved. Articles cannot be reproduced without permission from the author© 2022