[Support request] Disable Header on Entire Site

Home Forums Support [Support request] Disable Header on Entire Site

Home Forums Support Disable Header on Entire Site

  • This topic has 6 replies, 2 voices, and was last updated 5 months ago by Leo.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2382095
    catbiscuits

    Hi, it is super easy to get rid of sidebars, but headers are another matter. How do I get rid of it? I don’t want it at all on any page. I’ve looked on the forum and in documentation, but nothing seems right. I have created a disable header hook, selected generate_header, clicked on disable site header, clicked on execute php, and there it is on my front page. Any ideas?

    I love Generatepress, but I wish the header could be treated more like a block we could edit from the customize page.

    #2382445
    Leo
    Staff
    Customer Support

    Hi there,

    You can do so by creating a layout element to disable the site header and assign the element to the entire site:
    https://docs.generatepress.com/article/layout-element-overview/#disable-element

    Let me know if this helps 🙂

    #2382658
    catbiscuits

    Ah that worked better, thanks.

    #2382660
    Leo
    Staff
    Customer Support
    #2383467
    catbiscuits

    Just when I thought this was resolved, I went to one page … here. Yikes! The featured image appears at the top of the page. I wasn’t expecting that. I thought I’d disabled the header!!!

    So I went into the Customizer > Layout > Blog -> Featured images –> I disabled the featured image.

    And the featured image is still there. I don’t understand.

    I have also tried adding the following to additional css but no luck…

    .post-image-above-header .inside-article .featured-image, .post-image-above-header .inside-article .post-image {
    margin-top: 0;
    margin-bottom: 2em;
    display: none;
    }

    .post-image-aligned-center .featured-image, .post-image-aligned-center .post-image {
    text-align: center;
    display: none;
    }

    #2383491
    catbiscuits

    Well, what the heck, it finally disappeared. There must be some caching at Kinsta or somewhere in the pipe that I don’t know about since I was opening it on browsers on other machines that had never seen that page. I don’t get it.

    Let me know if there are any issues with hiding it using this method.

    #2384554
    Leo
    Staff
    Customer Support

    I wasn’t expecting that. I thought I’d disabled the header!!!

    The featured image is unrelated to header so hiding the header wouldn’t remove the featured image as well.

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