Home » Labs » How to add Facebook like button to WordPress  

How to add Facebook like button to WordPress


Filed under Labs

Add below code to your WordPress template (index.php, single.php etc) to show a Facebook like button for each article.

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

Posts you may like: