WordPress.org

Support

Support » How-To and Troubleshooting » Facebook like button in HEADER

Facebook like button in HEADER

  • Hi there, I have searched on entire forum but didn`t get any results anyway … I want to introduce the facebook like button in my head Home page.. or outside the sidebar greed up right … how can I do that?
    Big thanks in advance 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can generate the code you need here:

    http://developers.facebook.com/docs/reference/plugins/like/

    Use the iframe version, it will be easier to add.

    Depending on the structure of your theme, you’ll need to insert this code in header.php, as well as adjust the styling if required to get it positioned and looking correct.

    If you only want the button to appear on the home page, you’ll need to wrap it in a conditional,

    <?php
    if( is_home() ) { ?>
    <iframe src="http://www.facebook.com/plugins/like.php?app_id=101868206585294&href=http%3A%2F%2Fdomain.com&send=false&layout=standard&width=450&show_faces=false&action=like&colorscheme=light&font&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
    <?php } ?>

    Big thanks 😀 apreciate

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Facebook like button in HEADER’ is closed to new replies.
Skip to toolbar