Support » Themes and Templates » [Resolved] Opening social media link in new tab/window?
2 years, 11 months ago
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!
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>',
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!