[Resolved] Change default site header layout

Home Forums Support [Resolved] Change default site header layout

Home Forums Support Change default site header layout

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #259269
    Martin

    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

    #259273
    Leo
    Staff
    Customer Support

    Hi Martin,

    Some good articles here might be helpful: https://docs.generatepress.com/article/page-header-overview/
    Also the page header features shouldn’t be page specific…Are you able to provide the link to your site so we can take a look?

    #259340
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    #259419
    Martin

    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

    #259445
    Tom
    Lead Developer
    Lead Developer

    Glad it’s working ๐Ÿ™‚

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.