- This topic has 24 replies, 4 voices, and was last updated 10 years, 6 months ago by
bdbrown.
-
AuthorPosts
-
August 23, 2015 at 2:05 pm #131574
Tristan
I’m actually still running the super package and just update the individual plugins as they come out, but I have installed the latest pageheader version.
Do you still offer an upgrade to premium for those who bought super? Im definitely keenAugust 23, 2015 at 3:16 pm #131576Tom
Lead DeveloperLead DeveloperHmm, the latest version of Page Header should work with that code.
I do offer an upgrade, just give me a shout at support@generatepress.com 🙂
August 23, 2015 at 3:44 pm #131580Tristan
Will do man thank you.
Yeh I’m not sure where it’s gone wrong.
I’ve got the blank child theme activated, running Page Header 1.3.32.
This is the full code in functions.php of the child theme:<?php /** * Generate child theme functions and definitions * * @package Generate */ add_filter( 'generate_page_header_target','generate_open_page_header_new_tab' ); function generate_open_page_header_new_tab() { return ' target="_blank"'; } ?>August 23, 2015 at 11:53 pm #131599Tom
Lead DeveloperLead DeveloperAh, figured it out! I gave you the wrong filter name.
This should do it:
add_filter( 'generate_page_header_link_target','generate_open_page_header_new_tab' ); function generate_open_page_header_new_tab() { return ' target="_blank"'; }August 24, 2015 at 12:01 am #131604Tristan
Works perfect!! Thank you! 🙂
August 24, 2015 at 12:08 am #131606Tom
Lead DeveloperLead DeveloperNo problem! 🙂
September 24, 2015 at 8:12 am #139387Markus
I’m running the latest GP Premium version. If it is possible now to open the page header image link in a new window, I can’t find it 🙁
The theme is running at multilingual installation and works fine. Did I understand right, when I update GP over the Network Admin that the GP versions at the “copied” other language version are not updated?
Thanks
MarkusSeptember 24, 2015 at 11:01 am #139435Tom
Lead DeveloperLead DeveloperYou would have to use the above code to open the links in a new window: https://generatepress.com/forums/topic/post-header-links/page/2/#post-131599
When you update GP/GP Premium, it shouldn’t have any affect on your content.
September 25, 2015 at 6:50 am #139678Markus
Where should I ad the code?
GP Hooks? After head area? Or in the function.php? Would this be save if I update something?
September 25, 2015 at 9:20 am #139692bdbrown
@Markus – it would go in your child theme functions.php file.
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
-
AuthorPosts
- You must be logged in to reply to this topic.