Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28691

    The facebook, twitter, email icons at the righ of your screen… Where can I make these links (only the social icons) open in a new window?

    Thanks!

    #138342

    Hey,

    Please open your theme directory and go to Replete > Includes > Helper-social-media.php and you will see following code in line 63

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

    Change it to

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

    Regards,

    Yigit

    #138343

    Thanks Yigit!!… is there a way to have the social links open in a new window, but not the email link?

    #138344

    Yes,

    replace

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

    with

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

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

The topic ‘How can I make the side social links etc. open in a new window?’ is closed to new replies.