Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18202

    Hi guys,

    I was wondering if there was a way to open my social media links in a new tab, rather than the same window? I’m also having this problem with an RSS Feed that I incorporated into my footer using the basic RSS Feed widget. I want this to open in a new tab, rather than the current window as well.

    Thanks.

    #98570

    Hi Fire_Safety_Sales,

    Kindly open wp-contentthemeschoicesincludeshelper-social-media.php and find this line of code:

    $html .= "<a href='".$icon['social_icon_link']."'>".ucfirst($icon['social_icon'])."</a>";

    replace it with:

    $html .= "<a href='".$icon['social_icon_link']."' target='_blank'>".ucfirst($icon['social_icon'])."</a>";

    Hope this helps. :)

    Regards,

    Ismael

    #98571

    This helps me too, thanks Ismael!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Opening Links in New Tabs’ is closed to new replies.