Support » Fixing WordPress » 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:

    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,

    if( is_home() ) { ?>
    <iframe src="" 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.