- This topic has 12 replies, 3 voices, and was last updated 6 years, 8 months ago by
Leo.
-
AuthorPosts
-
August 8, 2017 at 6:40 am #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.nlThanks, kind regards Saskia
August 8, 2017 at 8:18 am #361634Leo
StaffCustomer SupportHi 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.
August 8, 2017 at 8:28 am #361642Saskia
thanks, but header and menubar are still visible
any other suggestions?
thanks kind regards SaskiaAugust 8, 2017 at 8:36 am #361645Leo
StaffCustomer SupportCan you link me to a WooCommerce page?
August 8, 2017 at 8:38 am #361646Leo
StaffCustomer SupportActually 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!
August 8, 2017 at 8:44 am #361652Saskia
The header is gone now, great!
The menu bar is still there, these are the links
thanks!!https://leden.hondenfotograferen.nl/winkelmand/
https://leden.hondenfotograferen.nl/winkelmand/
https://leden.hondenfotograferen.nl/winkelmand/August 8, 2017 at 8:46 am #361658Leo
StaffCustomer SupportI thought you only wanted sticky navigation removed?
I’ve edited the code above so main navigation and sticky navigation are both removed.
August 8, 2017 at 8:56 am #361672Saskia
Yesss perfect!
thanks and sorry for the confusion!
😀
me happy
kind regards SaskiaAugust 8, 2017 at 9:17 am #361684Leo
StaffCustomer SupportGlad I could help!
July 21, 2019 at 11:21 pm #963820moderndev
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
July 22, 2019 at 8:22 am #964238Leo
StaffCustomer SupportHi 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 🙂
July 22, 2019 at 11:08 am #964393moderndev
Excellent! Thank you
July 22, 2019 at 11:17 am #964397Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.