How to Add a Facebook Like Button to WordPress?

Now, it is easier than ever to add the Facebook famous "Like"/"Recommend" to your posts and increase their popularity.

First, you need to login as administrator to the WordPress admin panel. Then go to Appearance -> Editor.

Then place the following code wherever you want the like button to appear:

<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=350&amp;action=like&amp;colorscheme=light"
scrolling="no" frameborder="0" allowTransparency="true" ></iframe>

The final result should look like this:

WordPress is a trademark of WordPress Foundation. SiteGround is not affiliated with or endorsed by the WordPress Project or its trademark owners.