Site logo

Archived topic

Change default site header layout

4 replies · Started by Martin on December 30, 2016

Viewing posts 1–5 of 5

Hi everybody,

I am new to GP Premium Add-ons and I had hoped that there is an obvious way to improve the site header layout. I do not really like the default site header that can be set in the customizer. So I deleted the logo and checked both boxes to remove the predefined captions. Then I created a merged page header with a background image and some nicer formatting of the captions. But this seems to be a per page setting and not a site level setting. Is there a menue that does what the page header setting does on a site level?

Best regards
Martin

The Page Header meta box settings are page specific.

One thing you can do is build your header using the Blog page header in Customize > Blog (all of the meta box settings are in there for the blog).

Then you just need to add a filter to make it appear site-wide instead of just on the blog:

add_filter( 'generate_get_blog_page_header','tu_global_page_header' );
function tu_global_page_header()
{
    // Show the blog page header site-wide - no conditional needed.
    return true;
}

Adding PHP: https://docs.generatepress.com/article/adding-php/

Let me know if you need more info :)

Hi Tom,

thank you, creative solution, just tried it and it works as described.
Maybe a customizable site header could be a feature for a future release.

Regards
Martin

Glad it's working :)

This archived topic is closed to new replies.