Archived

This topic is now archived and is closed to further replies.

  • 0

Open Social Media links in New Window

Question

Posted · Report post

Hi, Can anyone tell me what file i need to add target="_blank" to so that my social media links open in a new window. Also, the Twitter comment on the Station Pro home page too please. Thank you, James.

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

I have found that i need to make the change in the _iconlinks.php file, but i am having trouble finding it. Another thread suggested the StationPro/Library folder, but there is no such file there for me.

Share this post


Link to post
Share on other sites

Posted · Report post

For the twitter messages you can edit _twittermessages.php For the social icons you can edit them in the header.php

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks Adam, i have the social icons sorted out, but am having trouble with where to add target="_blank" in twittermessages.php

Share this post


Link to post
Share on other sites

Posted · Report post

Use this code: <?php if(function_exists('twitter_messages') && pagelines('twittername')):?> <div class="twitter"> "<?php twitter_messages(pagelines('twittername'), 1, false, false, '', false, false, false); ?>" ??” " target="_blank"><?php echo pagelines('twittername');?> </div> <?php endif;?> See where I added it?

Share this post


Link to post
Share on other sites

Posted · Report post

Got it, thank you.

Share this post


Link to post
Share on other sites