- This topic has 7 replies, 3 voices, and was last updated 7 years, 1 month ago by Leo.
-
AuthorPosts
-
February 26, 2017 at 8:28 am #284189allan
Hello,
I just noticed that woocommerce is overriding all my page preferences on my cart, product, shop, checkout pages. WC is showing primary nav, content title, etc. even if I’ve already disabled them. How can I disable this from woocommerce? or how can I override woocommerce?
THanks,
February 26, 2017 at 8:45 am #284194LeoStaffCustomer SupportHi Allan,
So you’ve disabled those element within Woocommerce and they are still showing? Are you using a caching plugin?
I’m not familiar with Woocommerce so all I can do is to give you a bunch of CSS to hide them which is likely not the best way.
Have you checked their Dosc page (https://docs.woocommerce.com/) to see if there are some info on there? If not this might be a better question for Woocommerce.
Hope this helps.
February 26, 2017 at 10:40 am #284235TomLead DeveloperLead DeveloperAny index page in WordPress (blog, archives, WooCommerce index) etc.. will ignore meta box values. This is unfortunately just how WordPress itself works.
Unfortunately CSS is probably the best method here – I believe Leo answered this before, do you still have that CSS handy?
February 26, 2017 at 10:58 am #284250LeoStaffCustomer SupportI always forget WooCommerce is also index pages… Try this CSS:
.woocommerce .entry-header, .woocommerce .main-navigation { display: none; }
Let me know if you want to hide anything else. A link to the page would help me a lot 🙂
February 26, 2017 at 8:46 pm #284362allanTHanks. It works in the “shop” page. On the “cart” and “checkout”, the primary nav is still showing. Is there additional code to use for each woocommerce page that I don’t want the menu to appear in?
In some pages, I would like to disable the primary nav and have the focus on my CTA much like this: https://zaiaorganics.com/test/
But after the CTA is clicked, the default WC pages loads and it loads the primary nav, content title and breadcrumbs.
ok in: (but content title is showing)
https://zaiaorganics.com/shop/still showing in:
https://zaiaorganics.com/checkout/
https://zaiaorganics.com/cart/Thank you in advance.
February 26, 2017 at 9:02 pm #284367LeoStaffCustomer Support– To hide primary menu on those 2 pages, you should be able to use Disable Element meta box
https://docs.generatepress.com/article/disable-elements-overview/– To hide the title Shop, try:
.blog .page-title { display: none; }
Let me know if this answers the questions.
February 26, 2017 at 10:49 pm #284389allanyey! it works. (forgot about the disable element)
Thank you Leo and Tom.
February 27, 2017 at 8:06 am #284549LeoStaffCustomer SupportGlad we could help!
-
AuthorPosts
- You must be logged in to reply to this topic.