How to place a facebook ‘like’ button on a wordpress post or page

As Facebook gradually battles Google for interwebular supremacy you’ll probably want to integrate a ‘like’ button directly into your posts or pages - just like the one after this post…

Simply place the following code into your single.php or page.php after the loop and suddenly you will be smothered with facebooky likedness all over your readers walls…

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink();?>&amp;layout=standard&amp;show-faces=false&amp;width=249&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe>

If you’re not using Wordpress replace the following code with the url of the page you are linking to…

<?php the_permalink();?>

Feel free to like this post. Spread the like…

Post a Comment

Your email is never shared. Required fields are marked *

*
*