Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7200

    Hello there,

    I would like to open the social bookmark links in a new tab/window. Is that possible and, if so, how do I do that?

    Thanks!

    Janet

    #57106

    Hi,

    in your sidebar.php find “####### SOCKET CONTAINER #######”. Also find <!-- end social_bookmarks--> this should be a few lines lower.

    Replace the entire part by

    ####### SOCKET CONTAINER #######
    echo "<div id='socket' class='box'>";

    echo " <ul class='social_bookmarks'>";
    echo " <li class='rss'><a href='".avia_get_option('feedburner',get_bloginfo('rss2_url'))."'>RSS</a></li>";

    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>";

    echo " </ul><!-- end social_bookmarks-->";

    Let me know if it works :)

    #57107

    Hey Chris,

    Thanks! That did the trick for FB and Twitter, but not for the RSS – can you tell me how I can change that to (or remove it entirley since I don’t really need it)?

    Thanks!

    Janet

    #57109

    Just delete the whole code Chris posted above – the rss icon will be removed too.

    #57110

    and what if i want rss in a new window?

    edit: nevermind I got it. I just added the _blank in the corresponding spot

    #57111

    Hi!

    Glad that you found a solution :)

    Best regards,

    Peter

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

The topic ‘Open social bookmark links in new tab/window’ is closed to new replies.