How to add a Facebook Like Button to WordPress

How to add a Facebook Like Button to WordPressFacebook is a powerful tool for any blogger or site owner. Today’s snack is a Tutorial that shows you how to add a Facebook Like button to your WordPress site in 3 easy steps to help your readers easily share your content.

Step 1:

From within your WordPress Admin Dashboard, Open the Appearance Editor.

Step 2:

From within the Appearance Editor, choose the theme file that you want to add the Facebook Like button to. For example, if you would like to add the Facebook Like button to every post, open the Single.php file.

Step 3:

Add this code below to the place within that theme file that you want your Facebook Like button located.

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

That’s it, now you have added a Facebook Like Button to your WordPress site.

Click here to find out How to display a Facebook Share button in WordPress using a shortcode. Or you can click here to find out How to display the number of your Facebook fans.

   Related Sponsored Links

Disclaimer: The information contained in this website is for general information purposes only and in no event will this site or its owners be liable for any losses or damages associated with your use of our site or content. Click here to see our full Disclaimer.

Comments

  1. noman322 says:

    Facebook is my fav app http://goo.gl/2bhVI

Leave a Comment

*