Hi,
thanks for the quick reply, works like a charm ๐
Since this snippet makes the page header hardcoded, I’m trying to make the page header for the date archive pages the same as the page header for anoter “global location” (e.g. the category archive pages).
I’m not really very much into WordPress Coding, so with looking into the source of the plugin I came up with the following solution:
add_filter( 'generate_page_header_id', function( $id ) {
if ( is_archive() ) {
$global_locations = get_option( 'generate_page_header_global_locations' );
return $global_locations[ 'category' ];
}
return $id;
} );
which I’ve put into the functions.php for my custom child theme.
At first sight it looks ok, but I’ve no idea if there are any drawbacks/problems with this solution – any comments?
br,
__
/homas