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

    Hello, i’m trying to make social links of the top of the sentence theme open in a new window.

    I put this code

    echo ‘ <li class=”rss”>RSS‘;

    echo ”;

    and i see this message:

    Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/inves519/public_html/wordpress/wp-content/themes/sentence/header.php on line 124

    What’s wrong? =(

    #111152

    Tbh I’m not sure why this code doesn’t work. If you want to add a target blank to your social links replace:

    if($dribbble = avia_get_option('dribbble')) { echo "<li class='dribbble'><a href='http://dribbble.com/".$dribbble."'>".__('Follow us on dribbble', 'avia_framework')."</a></li>"; }
    if($twitter = avia_get_option('twitter')) { echo "<li class='twitter'><a href='http://twitter.com/".$twitter."'>".__('Follow us on Twitter', 'avia_framework')."</a></li>"; }
    if($facebook = avia_get_option('facebook')) { echo "<li class='facebook'><a href='".$facebook."'>".__('Join our Facebook Group', 'avia_framework')."</a></li>"; }
    if($gplus = avia_get_option('gplus')) { echo "<li class='gplus'><a href='".$gplus."'>".__('Join me on Google Plus', 'avia_framework')."</a></li>"; }
    if($linkedin = avia_get_option('linkedin')) { echo "<li class='linkedin'><a href='".$linkedin."'>".__('Add me on Linkedin', 'avia_framework')."</a></li>"; }

    with:

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

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

The topic ‘Error on code’ is closed to new replies.