I would prefer to have all social media icons open a new tab or window rather than in the same window. There does not appear to be an option for this so I assume I would need to edit the php in one of the theme files? If so where?
Also if this is the only route is there a child theme available to ensure future updates don’t overwrite any changes?
There isn’t currently a child theme already create but the change is pretty simple. Open includes>helper-social-media.php and look for:
$html .= "<a href='".$icon['social_icon_link']."'>".ucfirst($icon['social_icon'])."</a>";
replace that line with:
$html .= "<a href='".$icon['social_icon_link']."' target='_blank'>".ucfirst($icon['social_icon'])."</a>";
So that the target blank gets added to all social media links.
Perfect. Many thanks.
What are the chances of having a child theme in the future?
The topic ‘Social Media Icons – how to open in a NEW window?’ is closed to new replies.