Support » Plugins and Hacks » How to add the Facebook Like Button on your blog
6 years, 8 months ago
Ok guys this is not a question. I wanted to add that cool Facebook Like button on my blog and after a bit of searching and successfully getting it done on my blog, I thought I’d share it here.
If you’re comfortable with editing your WordPress template files, you can simply add this code after your post:
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink()); ?>&layout=standard&show-faces=true&width=530&height=60&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:530px; height:60px"></iframe>
And voila, there it is. Everytime a reader presses the Like button the count will go up and your link will be posted on his/her profile.
Good luck and enjoy! 🙂
Or you can just use the plugin:
No coding necessary, you can customize the look and placement of the button in the settings interface.