Hi guys, Im trying to achieve a sidebar menu that only shows the children of the current selected menu item only.
Here is a perfect example of what I mean http://www.cats.org.uk/cat-care/care-leaflets
I don’t want to use a plugin to emulate this, but am sure a bit of css can achieve this look.
How do I go about this?
Thanks
Gregg
hello?
Hi!
Send us a link to your page with the sidebar menu and we’ll see if we can get you some CSS to use.
Cheers!
Elliott
hi thank you, details in the private section
Hi!
Please add following code to Quick CSS
#nav_menu-22 .current-page-ancestor.current-page-parent .sub-menu {
display: block;
}
#nav_menu-22 .sub-menu {
display: none;
}
Regards,
Yigit
that seems to only hide the sub menu. Its not displaying it if I click on the parent iterm?
Hi,
I think you might need a plugin for what you are trying to achieve, maybe this will work out for you? https://wordpress.org/plugins/nextend-accordion-menu/
Regards,
Rikard
thanks however as i mentioned earlier im trying to avoid using plugins. Want to use everything inbuilt to the theme as much as possible.
Woocommerce category menus do the same thing what i am looking for, but thats only for products. It would be good to be able to do that for the normal sidebar custom menus…