- This topic has 6 replies, 2 voices, and was last updated 5 months ago by
Leo.
-
AuthorPosts
-
October 22, 2022 at 7:00 am #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.
October 22, 2022 at 11:27 am #2382445Leo
StaffCustomer SupportHi 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-elementLet me know if this helps 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 22, 2022 at 8:26 pm #2382658catbiscuits
Ah that worked better, thanks.
October 22, 2022 at 8:36 pm #2382660Leo
StaffCustomer SupportNo problem 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 23, 2022 at 6:18 pm #2383467catbiscuits
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;
}October 23, 2022 at 7:13 pm #2383491catbiscuits
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.
October 24, 2022 at 10:55 am #2384554Leo
StaffCustomer SupportI 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.