Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Resolved] How to remove header in category page

Home Forums Support [Resolved] How to remove header in category page

Home Forums Support How to remove header in category page

  • This topic has 14 replies, 2 voices, and was last updated 6 years ago by Leo.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #436529
    Gil

    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!

    #436560
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    .category .page-header {
          display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #436996
    Gil

    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.

    #436998
    Leo
    Staff
    Customer Support

    Can you link me to the page?

    #437005
    Gil

    can i pm you the link? or just post it here? because i am afraid that others will see my site

    #437006
    Leo
    Staff
    Customer Support

    You can add it in the original post. It has a URL field that only Tom and myself can see.

    #437007
    Gil

    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

    #437027
    Gil

    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

    #437261
    Leo
    Staff
    Customer Support

    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.

    #437372
    Gil

    Hello sir,

    The issue thar i am having is still there.

    #437433
    Leo
    Staff
    Customer Support

    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/

    #437488
    Gil

    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?

    #437500
    Leo
    Staff
    Customer Support

    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/

    #437552
    Gil

    Thanks my problem i solved now will try the hooks later.

    #437936
    Leo
    Staff
    Customer Support

    No problem!

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