WordPress.org

Support

Support » Themes and Templates » [Resolved] Opening social media link in new tab/window?

[Resolved] Opening social media link in new tab/window?

  • Hi,
    I would like a new window/tab to open when you click on the social icons but can’t seem to find where to place the “target=’_blank'” in the functions.php? Please help!

    /Karolina

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Anthony Hortin

    @ahortin

    There’s a function called quark_get_social_media in functions.php that generates the html for those icons. You can just add it in there.

    $output .= sprintf( '<li><a href="%1$s" title="%2$s" target="_blank"><i class="%3$s"></i></a></li>',
    Theme Author Anthony Hortin

    @ahortin

    FYI – I’ve just decided to add this as an extra Theme Option, to make it easier for people. So, when WordPress 3.7 is released, which will be very soon, I’ll release an update to the theme.

    Thank you so much for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Opening social media link in new tab/window?’ is closed to new replies.