Site logo

Archived topic

woocommerce overriding my page preferrence

7 replies · Started by allan on February 26, 2017

Viewing posts 1–8 of 8

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,

Hi 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.

Any 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?

I 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 :)

THanks. 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.

yey! it works. (forgot about the disable element)

Thank you Leo and Tom.

Glad we could help!

This archived topic is closed to new replies.