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!
4 replies to this topic
#1
Posted 11 September 2012 - 07:44 PM
#2
Posted 11 September 2012 - 08:29 PM
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.
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.
#3
Posted 17 September 2012 - 10:16 PM
Hi Rob, thanks, i was about to modify one of the last lines in section.twitterbar.php like this...
echo '" — <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!
echo '" — <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!
#4
Posted 18 September 2012 - 08:34 AM
The topic was marked as resolved.
#5
Posted 04 November 2012 - 01:23 PM
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)
To: (line 36)
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.
I tried editing the section.php file in the FTP folder Themes > PageLines > Sections > TwitterBar > section.php.
From: (line 36)
'<span class="twitter">%s — <a class="twitteraccount" href="http://twitter.com/#!/%s">%s</a></span>',
To: (line 36)
'<span class="twitter">%s — <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.
Also tagged with one or more of these keywords: Resolved
Resolved
PageLines Framework →
Technical Support →
Anything Boxes And Polylang Language Filtering ProblemStarted by janpeeters , 01 Dec 2012 |
|
|
||
Header In Banner AlignmentStarted by bankrollbuilder , 28 Nov 2012 |
|
|
||
Resolved
PageLines Framework →
Customizations →
2 Hero UnitsStarted by starlit , 28 Nov 2012 |
|
|
||
Tabs Do Not Align HorizontallyStarted by hutruk , 28 Nov 2012 |
|
|
||
Resolved
PageLines Framework →
Customizations →
Reduce Margin In Contact FormStarted by texasx , 27 Nov 2012 |
|
|












