How To Add a Facebook Like Button (3 posts)

  1. ModernRevolutions
    Posted 5 years ago #

    I've tried just about 10 different plugins and I can't find a simple way to get a facebook like button on my page. I just want a simple button that says "like" and the amount of friends that like it. I also want one I can place anywhere with a code, not one that is automatically put places. Can anyone help me? Thanks! :)

  2. ppauli
    Posted 5 years ago #

    Go here:

    ...and follow the directions. You'll have to verify your account via text (to prove you're not a spambot).

    Copy and paste the second set of code (the one that starts with <div> vs. <iframe>) into the footer.php document just before the closing </footer> tag (or wherever you want to insert it).

  3. defade
    Posted 5 years ago #

    Insert the following code where-ever you want the like button

    I'd recommend somewhere within the 'loop' on your single.php template

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

    NOTE: the ifame code is the only code that works on all browsers

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.