[Resolved] Disable Menu Plus

Home Forums Support [Resolved] Disable Menu Plus

Home Forums Support Disable Menu Plus

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #134721
    Oleg

    Do I understand correctly that the Menu Plus can be turned off for individual pages using the plugin Disable Elements?

    #134722
    Tom
    Lead Developer
    Lead Developer

    Ah, no it can’t – but it should be! I’ll add this to the to-do list πŸ™‚

    For now, you can use your page ID with some CSS.

    For example, if your page ID is 10, you could do this:

    .page-id-10 .navigation-clone {
          display: none;
    }

    This will only work if your sticky effect is fade or slide – the “none” effect uses the actual navigation (doesn’t clone it), so that would take some extra thinking/work.

    Let me know if you need more info πŸ™‚

    #134736
    Oleg

    I would like to turn off the menu for the entire category, for example, WooCommerce Product.

    #134778
    Tom
    Lead Developer
    Lead Developer

    To disable on WooCommerce:

    .woocommerce .navigation-clone {
          display: none;
    }

    For all single products:

    .single-product .navigation-clone {
          display: none;
    }

    Let me know if you need more info πŸ™‚

    #135605
    wm1

    I have this need as well – that is, to disable individual pages to not show up on the navigation menu. Where do I access the location to update that code for each page I don’t want on the menu.

    #135682
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    The menu items can be added/removed in “Appearance > Menu”.

    Are you wanting to hide specific menu items on individual pages?

    #135812
    wm1

    This worked. Just wanted to hide certain pages on the whole site. Thank you!

    #135846
    Oleg

    Is there a way to turn off the menu not only for WooCommerce, and for custom types of posts?

    #135861
    Tom
    Lead Developer
    Lead Developer

    On custom post types? You’ll have to right click and inspect element, then look for a class adding to the <body> element specific to that post type.

    For WooCommerce, it’s: woocommerce

    Your custom post type should have one as well πŸ™‚

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