- This topic has 8 replies, 3 voices, and was last updated 5 years, 5 months ago by
Tom.
-
AuthorPosts
-
September 5, 2015 at 11:44 pm #134721
Oleg
Do I understand correctly that the Menu Plus can be turned off for individual pages using the plugin Disable Elements?
September 6, 2015 at 12:00 am #134722Tom
Lead DeveloperLead DeveloperAh, 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 6, 2015 at 3:46 am #134736Oleg
I would like to turn off the menu for the entire category, for example, WooCommerce Product.
September 6, 2015 at 9:34 am #134778Tom
Lead DeveloperLead DeveloperTo 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 9, 2015 at 10:50 am #135605wm1
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.
September 9, 2015 at 10:31 pm #135682Tom
Lead DeveloperLead DeveloperHi there,
The menu items can be added/removed in “Appearance > Menu”.
Are you wanting to hide specific menu items on individual pages?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 10, 2015 at 7:09 am #135812wm1
This worked. Just wanted to hide certain pages on the whole site. Thank you!
September 10, 2015 at 9:09 am #135846Oleg
Is there a way to turn off the menu not only for WooCommerce, and for custom types of posts?
September 10, 2015 at 9:34 am #135861Tom
Lead DeveloperLead DeveloperOn 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.