Site logo

[Resolved] Merge Header Site-Wide

Home Forums Support [Resolved] Merge Header Site-Wide

Home Forums Support Merge Header Site-Wide

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #313883
    Nick

    Is there a way to merge the page header site-wide without having to do it on every page?

    I want the background image of my header to be behind my navigation.

    Or is there another way to handle this?

    Thanks!
    Nick

    #313895
    Leo
    Staff
    Customer Support

    Hi Nick,

    You can use the blog page header with a filter:
    https://docs.generatepress.com/article/blog-page-header/#displaying-the-blog-page-header-elsewhere

    Let me know if this helps.

    #313921
    Tom
    Lead Developer
    Lead Developer

    Hi Nick,

    Should be achievable with a small piece of CSS. Can you link me to an example page?

    #313929
    Nick

    http://cityofswainsboro.org/admin/ (The way I want it to look)

    http://cityofswainsboro.org/admin/test-page/ (the “rest” of the site)

    I tried messing with the Blog Page header but it didn’t make much sense to me…

    Thanks!

    #313979
    Tom
    Lead Developer
    Lead Developer

    Ah ok, best way to do this:

    1. In GP Hooks, add this into the Before Header hook:

    <div class="header-wrap">

    And this into the After Header hook:

    </div><!-- .header-wrap -->

    2. Apply your BG to the wrap using some CSS:

    .header-wrap {
        background-image: url(http://cityofswainsboro.org/admin/wp-content/uploads/2017/05/colorkit-bg.jpg);
        background-repeat: no-repeat;
    }

    Then just remove the background color from the header in the Customizer and you should be good to go.

    #314026
    Nick

    This (Reply ##313979) did the trick! Thanks!

    Nick

    #314031
    Tom
    Lead Developer
    Lead Developer

    You’re welcome! 🙂

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