Monday, July 15, 2013

How to add Facebook “Like” Button in your WordPress Website

This code will show facebook like button on your Website, just copy it and paste it to the template file of blog posts to allow for Facebook "liking" of the article. The best place in the single.php template underneath where it outputs the content of the post.

<iframe src="<?php echo rawurlencode(get_permalink()); ?>&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" id="facebook-like"></iframe>

Disqus Comments