Site logo

Archived topic

Post Header Links

24 replies · Started by Anonymous on August 11, 2015

Viewing posts 16–25 of 25

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 keen

Hmm, 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 :)

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"';
}

?>

Ah, 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"';
}

Works perfect!! Thank you! :)

No problem! :)

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
Markus

Where should I ad the code?

GP Hooks? After head area? Or in the function.php? Would this be save if I update something?

This archived topic is closed to new replies.