Jump to content


Photo
- - - - -

Open Social Media links in New Window


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 jscurr

jscurr

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 06 April 2010 - 09:20 PM

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.

#2 jscurr

jscurr

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 06 April 2010 - 11:34 PM

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.

#3 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 07 April 2010 - 12:49 AM

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

#4 jscurr

jscurr

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 07 April 2010 - 04:05 AM

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

#5 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 07 April 2010 - 03:53 PM

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); ?>" ??”

Please Login or Register to see this Hidden Content

</div> <?php endif;?> See where I added it?

#6 jscurr

jscurr

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 08 April 2010 - 06:04 AM

Got it, thank you.