Archived

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

  • 0

Resolved How to open a new window from the Twitter bar?

Question

Posted · Report post

Hi everyone!

I'm using Platform theme and have a twitter bar in the Morefoot area. I wouldnt like visitors to my site to leave it when they click on the tweet or username.

How can i make this link open the twitter page on a new window?

Thanks for your help!

Share this post


Link to post
Share on other sites

4 answers to this question

Posted · Report post

I'm not sure if this answer is out of date or not, but I'm having the same issue with TwitterBar as the original poster.

I tried editing the section.php file in the FTP folder Themes > PageLines > Sections > TwitterBar > section.php.

From: (line 36)


'<span class="twitter">%s &nbsp;&mdash;&nbsp;<a class="twitteraccount" href="http://twitter.com/#!/%s">%s</a></span>',

To: (line 36)

'<span class="twitter">%s &nbsp;&mdash;&nbsp;<a class="twitteraccount" href="http://twitter.com/#!/%s" target="_blank">%s</a></span>',

It didn't seem to have an effect.

The next line has the "pagelines_tweet_clickable" function but I'm not sure where that is located to see if there's something to modify there.

Share this post


Link to post
Share on other sites

Posted · Report post

I'm not sure this is possible, but if it is, this would be the method.

You have to copy the twitter section from PlatformPro to PlatformBase (which should be active) then, edit the section.php file in the copied folder, to include target="_blank" in the URL.

Place the copied twitter section folder (and contents) to PlatformBase via FTP and it should work. If not, please let us know.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Rob, thanks, i was about to modify one of the last lines in section.twitterbar.php like this...

echo '" &mdash;&nbsp;<a class="twitteraccount" href="http://twitter.com/#!/' . pagelines('twittername') . '" target="_blank">' . pagelines('twittername') . '</a></span></div>';

... But indeed just noticed the twitter bar opens links in a new window. Is it possible that someone from pagelines modified it? Or maybe i just didnt try right before?

Thanks for your a lot for your help anyway!

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites