-
AuthorPosts
-
April 24, 2015 at 12:43 pm #257718
Site: http://jabbragency.net/ns/cameron
Stack: IconHi I am trying to find a way to keep the current sub menu open when one of the sub-menu pages are active. I would like only that sub menu to stay open and not all.
I have tried the following:
.masthead-inline .x-navbar.x-navbar-fixed-left .desktop .sub-menu { display:block; }
I put the above on all child pages in css but it keeps all the submenus open and not just the block for that parent.
Thanks,
Jonathan
April 24, 2015 at 7:19 pm #257917Hi there,
Thanks for writing in! This particular request is outside the scope of the support we can offer. However, try adding the following CSS rules into your Customizer, Custom > CSS section.
.masthead-inline .x-navbar.x-navbar-fixed-left .desktop .sub-menu .menu-item { display: none; } .masthead-inline .x-navbar.x-navbar-fixed-left .desktop .sub-menu .current-menu-item { display: block !important; }
Thanks!
April 25, 2015 at 9:08 am #258281Hi,
Thanks for trying to help. Unfortunately that didn’t work. What it did was stop the sub menus from displaying, however when you go to one of the child pages, that sub menu item only would show in the drop down but would not stay open after mouse click.
If you have any other ideas i’d really appreciate it.
Cheers,
Jonathan
April 25, 2015 at 9:33 am #258289Hi There,
Please try this following CSS instead:ul.x-nav .current-menu-ancestor .sub-menu { display: block !important; }
Hope it helps.
April 25, 2015 at 10:12 am #258301YES!! Thank you.
Have a great one.Jonathan
April 25, 2015 at 11:05 am #258325You’re most welcome.
-
AuthorPosts