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

    hi guys,

    I found another thread on this wonderful support forum which showed me how to get the links that are on the top right in the header to open in new windows by adding target = blank into one of the files. While I was adding the code, I realized that the RSS code was not in the same section as the other social media links like Facebook, twitter, Google+ etc.

    I went and I tried to find the RSS code and I tried adding the target = blank just like I had with the other social media links. However, I wasn’t able to do it correctly. May I please ask you where it is in the code where I have to make the necessary change in order to get my RSS link at the top to open in a new page?

    Here is my website: http://notashamedofthegospel.com

    Many thanks,

    Peter

    #74624

    Hi Peter,

    You should find the RSS link in header.php on roughly line 134. This is the code you’re looking for:

    echo ' <li class="rss"><a href="'.avia_get_option('feedburner',get_bloginfo('rss2_url')).'">RSS</a></li>';

    Just add your target=blank before the href like this:

    echo ' <li class="rss"><a target="_blank" href="'.avia_get_option('feedburner',get_bloginfo('rss2_url')).'">RSS</a></li>';

    Regards,

    Mya

    #74625

    Perfect, works like a charm :-)

    Thanks so much Mya, you’re awesome!

    #74626

    Hi!

    Glad that Mya could help you :)

    Best regards,

    Peter

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

The topic ‘Getting the RSS Link in top header social area to open in a new windro’ is closed to new replies.