Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #3398


    What do I need to modify to make Facebook open in a new browser tab when the user clicks the Facebook icon? I can see the code in footer.php where you are constructing the URL to associate with the button, but it’s a bit complicated. When I try to add the


    I get syntax errors, so I’m obviously putting it in the wrong place.





    open up footer.php (but use a ftp software not wp-backend otherwise it won’t work) and search for:

    echo "<li class='facebook'><a class='ie6fix' href='http://facebook.com/".$k_option['footer']['acc_fb']."'>Facebook</a></li>";

    Replace it with:

    echo "<li class='facebook'><a target='_blank'  class='ie6fix' href='http://facebook.com/".$k_option['footer']['acc_fb']."'>Facebook</a></li>";

    You can also use the javascript solution from this tutorial:



    Works perfectly. Thanks!


    Glad that I could help you :)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘How to open Facebook in a new tab’ is closed to new replies.