[Resolved] Hide header and menu on Woocommerce pages

Home Forums Support [Resolved] Hide header and menu on Woocommerce pages

Home Forums Support Hide header and menu on Woocommerce pages

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #361580
    Saskia

    Hi,
    I would like to have completelty distraction free Woocommerce pages on my website:

    Hide the header and (sticky) menubar on the product, cart and payment pages.

    Would be great if somebody could help me with the correct css for this.
    My website is: leden.hondenfotograferen.nl

    Thanks, kind regards Saskia

    #361634
    Leo
    Staff
    Customer Support

    Hi there,

    Give this a shot:

    .woocommerce-page .site-header, .woocommerce-page .main-navigation {
        display: none !important;
    }

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

    Let me know.

    #361642
    Saskia

    thanks, but header and menubar are still visible
    any other suggestions?
    thanks kind regards Saskia

    #361645
    Leo
    Staff
    Customer Support

    Can you link me to a WooCommerce page?

    #361646
    Leo
    Staff
    Customer Support

    Actually I edited the code above: https://generatepress.com/forums/topic/hide-header-and-menu-on-woocommerce-pages/#post-361634

    Can you give it another shot and link me to a page where it’s not working? Thanks!

    #361652
    Saskia
    #361658
    Leo
    Staff
    Customer Support

    I thought you only wanted sticky navigation removed?

    I’ve edited the code above so main navigation and sticky navigation are both removed.

    #361672
    Saskia

    Yesss perfect!
    thanks and sorry for the confusion!
    πŸ˜€
    me happy
    kind regards Saskia

    #361684
    Leo
    Staff
    Customer Support

    Glad I could help!

    #963820
    moderndev

    Hey,

    I would like to remove the header on the woocommerce Cart and Checkout.

    I have tried to add this code, but it seems to remove the header on the my account page. Is there a more specific version that would work only on the cart and checkout?

    Best,

    Peter

    #964238
    Leo
    Staff
    Customer Support

    Hi there,

    You can use the Layout Element to do this now:
    https://docs.generatepress.com/article/layout-element-overview/

    Let me know if this helps πŸ™‚

    #964393
    moderndev

    Excellent! Thank you

    #964397
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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