Forgive me if this has been answered before, I’ve looked throughout the forum but can’t find a solution.
How can I get the social media icons to open the links in a new tab?
Thanks
Forgive me if this has been answered before, I’ve looked throughout the forum but can’t find a solution.
How can I get the social media icons to open the links in a new tab?
Thanks
Find this line on file called extras.php
:
if ($active[$service]) { echo '<li><a href="'.$active[$service].'" class="social-icon '. $service .'" title="'. __('Follow us on ','dazzling').$service.'"><i class="social_icon fa fa-'.$service.'"></i></a></li>';}
And replace it with this one:
if ($active[$service]) { echo '<li><a href="'.$active[$service].'" class="social-icon '. $service .'" title="'. __('Follow us on ','dazzling').$service.'" target="_blank"><i class="social_icon fa fa-'.$service.'"></i></a></li>';}
I also decided to add this by default on Dazzling theme, so this is functionality will be able with the next theme update.
Thanks so much Aigars - fixed