• 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! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Go here:
    https://developers.facebook.com/docs/reference/plugins/like/

    …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).

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How To Add a Facebook Like Button’ is closed to new replies.