Archived topic
How to remove header in category page
14 replies · Started by Gil on November 27, 2017
hello sir,
new user here i just have a question how do i remove the header in my category page? i already know how to remove the header in posts and homepage. thanks alot!
Hi there,
Try this CSS:
.category .page-header {
display: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
hello sir sorry for the late reply when i tried the css that you gave me it removed the category title. i am trying to remove the white bar on top of the navigation because i will not be using a logo in that spot. when i disable element for headers and top bar on my pages and post it works the white bar on the very top of my page is gone. when i tried the css that you gave me it removed the category title.
Can you link me to the page?
can i pm you the link? or just post it here? because i am afraid that others will see my site
You can add it in the original post. It has a URL field that only Tom and myself can see.
oh ok... is that the link button? sorry a total noob here (NVM)
found it! the link is for the blog page... but if you can see the homepage there is no white bar on top
i was able to remove the white bar with the disable elements on the page and post edit. i just can remove it in the categories page
That's because the WordPress ignores metabox values by default on index pages (blog, archive etc)
I just checked a category page and looks like the issue has been resolved?
Let me know.
Hello sir,
The issue thar i am having is still there.
Ahh I see what you are talking about now.
Looks like you are trying to hide the header everywhere by default?
If so this should help: https://docs.generatepress.com/article/generate_header/
yay works now! thanks alot sir. one question do i need to still to disable the element for top bar and header in posts at pages after i enabled this the code snippet?
and last question i before i switched to generate press i was using a theme from thrive they have an option to add codes like fb pixel and google analytics. is there also a way for me to add the fb pixel code and google analytics code in the theme?
Nope that snippet remove the header by default.
They can both go into this GP hook: https://docs.generatepress.com/article/wp-head/
https://docs.generatepress.com/article/hooks-overview/
Thanks my problem i solved now will try the hooks later.
No problem!