WordPress.org

Forums

Quark
[resolved] Opening social media link in new tab/window? (4 posts)

  1. karoling
    Member
    Posted 1 year ago #

    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

  2. Anthony Hortin
    Member
    Theme Author

    Posted 1 year ago #

    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>',
  3. Anthony Hortin
    Member
    Theme Author

    Posted 1 year ago #

    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.

  4. karoling
    Member
    Posted 1 year ago #

    Thank you so much for your help!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic