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

    One thing you never want to do when driving people to your website, is to send them away from your website with another link. Is there a way to command the social media icons in the top to “open in a new window” instead of redirecting you to the link in the same window?

    Thank you.

    #72377

    Hi, I would be interested to know how to do this too.

    Chris

    #72378

    Hi,

    Kindly edit your header.php (in your Angular folder). Find this code:

    Code:
    `echo ‘<ul class=”social_bookmarks”>';
    if($dribbble = avia_get_option(‘dribbble’)) { $social ++; echo “<li class=’dribbble’><a href=’http://dribbble.com/”.$dribbble.”‘>”.__(‘Follow us on dribbble’, ‘avia_framework’).”</a>”; }
    if($twitter = avia_get_option(‘twitter’)) { $social ++; echo “<li class=’twitter’><a href=’http://twitter.com/”.$twitter.”‘>”.__(‘Follow us on Twitter’, ‘avia_framework’).”</a>”; }
    if($facebook = avia_get_option(‘facebook’)) { $social ++; echo “<li class=’facebook’><a href='”.$facebook.”‘>”.__(‘Join our Facebook Group’, ‘avia_framework’).”</a>”; }
    if($gplus = avia_get_option(‘gplus’)) { $social ++; echo “<li class=’gplus’><a href='”.$gplus.”‘>”.__(‘Join me on Google Plus’, ‘avia_framework’).”</a>”; }
    if($linkedin = avia_get_option(‘linkedin’)) { $social ++; echo “<li class=’linkedin’><a href='”.$linkedin.”‘>”.__(‘Add me on Linkedin’, ‘avia_framework’).”</a>”; }`

    And replace it with:

    Code:
    `echo ‘<ul class=”social_bookmarks”>';
    if($dribbble = avia_get_option(‘dribbble’)) { $social ++; echo “<li class=’dribbble’><a href=’http://dribbble.com/”.$dribbble.”‘ target=’_blank’>”.__(‘Follow us on dribbble’, ‘avia_framework’).”</a></li>”; }
    if($twitter = avia_get_option(‘twitter’)) { $social ++; echo “<li class=’twitter’><a href=’http://twitter.com/”.$twitter.”‘ target=’_blank’>”.__(‘Follow us on Twitter’, ‘avia_framework’).”</a></li>”; }
    if($facebook = avia_get_option(‘facebook’)) { $social ++; echo “<li class=’facebook’><a href='”.$facebook.”‘ target=’_blank’>”.__(‘Join our Facebook Group’, ‘avia_framework’).”</a></li>”; }
    if($gplus = avia_get_option(‘gplus’)) { $social ++; echo “<li class=’gplus’><a href='”.$gplus.”‘ target=’_blank’>”.__(‘Join me on Google Plus’, ‘avia_framework’).”</a></li>”; }
    if($linkedin = avia_get_option(‘linkedin’)) { $social ++; echo “<li class=’linkedin’><a href='”.$linkedin.” target=’_blank”>”.__(‘Add me on Linkedin’, ‘avia_framework’).”</a></li>”; }`

    Kindly remove the ` in the code. Hope this helps. :)

    Best Regards,

    Ismael

    #72379

    Hi Ismael,

    thank you for that,

    I have noticed a couple of misplaced ‘ in the Linkedin line.

    Correct code should be :

    echo '<ul class="social_bookmarks">';

    if($dribbble = avia_get_option('dribbble')) { $social ++; echo "<li class='dribbble'>".__('Follow us on dribbble', 'avia_framework').""; }

    if($twitter = avia_get_option('twitter')) { $social ++; echo "<li class='twitter'>".__('Follow us on Twitter', 'avia_framework').""; }

    if($facebook = avia_get_option('facebook')) { $social ++; echo "<li class='facebook'>".__('Join our Facebook Group', 'avia_framework').""; }

    if($gplus = avia_get_option('gplus')) { $social ++; echo "<li class='gplus'>".__('Join me on Google Plus', 'avia_framework').""; }

    if($linkedin = avia_get_option('linkedin')) { $social ++; echo "<li class='linkedin'>".__('Add me on Linkedin', 'avia_framework').""; }

    I hope that helps.

    Kind regards,

    john

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

The topic ‘Social Media links open in new window?’ is closed to new replies.