Jump to content
Sign in to follow this  
jscurr

Open Social Media links in New Window

Recommended Posts

jscurr

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
jscurr

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
cmunns

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
jscurr

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
cmunns

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×