Archived

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

  • 0

Resolved Features Section: Open In New Tab


Question

Posted · Report post

Hi,

Sorry to bother you on the weekend but please can you tell me; is it possible to make the features open in new tab when the link is clicked? I may have missed it but can't find anywhere how to do it.

Cheers,

Lesley

Share this post


Link to post
Share on other sites

12 answers to this question

Posted · Report post

Hi, yea the filter is actually pagelines_features_target, i made a typo on the old mobile wink.png

Anyway, heres a snippet you can add to customize functions.php, or a child themes functions.php:

 

 


 

add_filter( 'pagelines_features_target', function() { return 'target="_blank"'; } );
 

 

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks bat learning, not sure what it means, i guess the answer is that it cant be done. I will wait to see wht the 'team' have to say before I delete it from my site though.

Cheers

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

At this moment in time, its not currently possible to have the link open in a new tab/window. However, it has been added to our tracker system. If you would like this functionality now, you will need to contact one of our Pros.

http://www.pagelines.com/pros/

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Feature was added in 2.3.1 there is a filter now pagelines_feature_target

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks Danny.

Share this post


Link to post
Share on other sites

Posted · Report post

Thank you Simon

I am sorry but I am not sure how to impliment this. Any further instructions would be apreciated.

Share this post


Link to post
Share on other sites

Posted · Report post

Super Fab! thanks. works prefectly.

And my next question is................................

dont worry I'll start another topic

Thanks again

Lesley

Share this post


Link to post
Share on other sites

Posted · Report post

Hey Simon

I have tried placing this code and it keeps giving me an error. You got any ideas why?

Cheers

Nick

Hi, yea the filter is actually pagelines_features_target, i made a typo on the old mobile ;)

Anyway, heres a snippet you can add to customize functions.php, or a child themes functions.php:


add_filter( 'pagelines_features_target', function() { return 'target="_blank"'; } );

Share this post


Link to post
Share on other sites

Posted · Report post

Nick, this topic has been set to resolve, as the question the OP asked was answered. If you're having issues with the code, please reply to the topic, where I gave you the link please, you most likely haven't added it to the correct location.

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

Posted · Report post

Hi, can anyone help with this further?

Cheers Lesley

Share this post


Link to post
Share on other sites