Site logo

Archived topic

Disable Header on Entire Site

6 replies · Started by catbiscuits on October 22, 2022

Viewing posts 1–7 of 7

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.

Ah that worked better, thanks.

No problem :)

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;
}

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.

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.

This archived topic is closed to new replies.