The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

How to add the Facebook Like Button on your blog (2 posts)

  1. jerm
    Posted 6 years 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! :)

  2. bottomlessinc
    Posted 6 years ago #

    Or you can just use the plugin:
    No coding necessary, you can customize the look and placement of the button in the settings interface.

Topic Closed

This topic has been closed to new replies.

About this Topic