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

    Hello,

    as you know, replete themes have a social media button on the right of screen

    may I know how to make this link opened in other tab

    target=”_blank”

    I find it on header.php but it’s full of arguments

    Help please

    #111795

    Open up wp-contentthemesrepleteincludeshelper-social-media.php and replace:

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

    with:

    if($icon['social_icon'] == 'rss' || $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>";
    }

    #111796

    thanks!

    #111797

    Glad Dude could help :)

    Let us know if you have any other questions or issues.

    Regards,

    Devin

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

The topic ‘make a facebook and twitter link target _blank’ is closed to new replies.