Tagged: , ,

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

    Hi,

    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

    target=”blank_”

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

    Thanks!

    Lori

    #42052

    Hey,

    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:

    http://www.kriesi.at/support/topic/i-want-that-external-links-links-to-other-websites-open-in-a-new-windowtab

    #42053

    Works perfectly. Thanks!

    #42054

    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.