Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23832

    How do I make the social icon links open in a new tab/window to keep visitors on my site?

    #121279

    Hi,

    Open includes >helper-social-media.php then find this code:

    $html  = "";
    $html .= "<".$this->args['inside']." class='".$this->args['class']."_".$icon['social_icon']." social_icon_".$this->counter."'>";
    $html .= "<a href='".$icon['social_icon_link']."' class='avia-font-entypo-fontello'>".$avia_config['font_icons'][$icon['social_icon']]."</a>";
    $html .= "</".$this->args['inside'].">";

    Replace it with this:

    $html  = "";
    $html .= "<".$this->args['inside']." class='".$this->args['class']."_".$icon['social_icon']." social_icon_".$this->counter."'>";
    $html .= "<a target='_blank' href='".$icon['social_icon_link']."' class='avia-font-entypo-fontello'>".$avia_config['font_icons'][$icon['social_icon']]."</a>";
    $html .= "</".$this->args['inside'].">";

    Regards,

    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘social icon links open in a new tab/window’ is closed to new replies.