Tagged: , , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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!

    #61112
    #61113

    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’).””;

    #61114

    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 :)

    #61115

    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.

    Code:
    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}”;

    #61116

    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.