Tagged: , , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #8349

    So how would I implement this code… “target=_blank” into this code…

    if($facebook = avia_get_option(‘facebook’)) echo “<li class=’facebook’>“.__(‘Join our Facebook Group’, ‘avia_framework’).”“;

    Thanks in advance!


    that didn’t help me at all, how do i add “target=_blank” to the echo statement below?

    if($facebook = avia_get_option(‘facebook’)) echo “<li class=’facebook’>”.__(‘Join our Facebook Group’, ‘avia_framework’).””;


    You need to add it to the a href element inside the li element. In your code the a href is missing however it must be somewhere otherwise you can’t link to another website :)


    I get the same issue when I try to post a code snippet that uses anchor link tags even when using code /code blocks.

    Functions.php line 171 I replace the lt and gt symbols with curly braces so the code would paste.

    if($dribbble = avia_get_option(‘dribbble’)) 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’)) 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’)) echo “{li class=’facebook’}{a href='”.$facebook.”‘ target=’_blank’}”.__(‘Join our Facebook Group’, ‘avia_framework’).”{/a}{/li}”;


    Please use backticks (`) instead of the code tag.

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

The topic ‘How to make all Social Links open up into a new tab "target=_blank"’ is closed to new replies.