WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. karoling
    Member
    Posted 10 months 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. ahortin
    Member
    Theme Author

    Posted 10 months 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. ahortin
    Member
    Theme Author

    Posted 10 months 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 10 months ago #

    Thank you so much for your help!

Reply

You must log in to post.

About this Theme

About this Topic