[Resolved] woocommerce overriding my page preferrence

Home Forums Support [Resolved] woocommerce overriding my page preferrence

Home Forums Support woocommerce overriding my page preferrence

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #284189
    allan

    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,

    #284194
    Leo
    Staff
    Customer Support

    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.

    #284235
    Tom
    Lead Developer
    Lead Developer

    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?

    #284250
    Leo
    Staff
    Customer Support

    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 🙂

    #284362
    allan

    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.

    #284367
    Leo
    Staff
    Customer 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.

    #284389
    allan

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

    Thank you Leo and Tom.

    #284549
    Leo
    Staff
    Customer Support

    Glad we could help!

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