Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20431

    Hi,

    Is there a little tweak to make the social media links opening in new tabs?

    Thanks

    Alex

    #107596

    In sidebar.php replace:

    if($facebook = avia_get_option('facebook')) echo "<li class='facebook'><a href='".$facebook."'>Facebook</a></li>";
    if($twitter = avia_get_option('twitter')) echo "<li class='twitter'><a href='http://twitter.com/".$twitter."'>Twitter</a></li>";

    with:

    if($facebook = avia_get_option('facebook')) echo "<li class='facebook'><a href='".$facebook."' target='_blank'>Facebook</a></li>";
    if($twitter = avia_get_option('twitter')) echo "<li class='twitter'><a href='http://twitter.com/".$twitter."' target='_blank'>Twitter</a></li>";

    #107597

    Great!

    Thanks

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

The topic ‘Social media opening in NEW tabs’ is closed to new replies.