Closed (fixed)
Project:
W3CSS Theme Renamed and Enhanced as Solo
Version:
2.0.12
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Issue tags:
Reporter:
Created:
5 Jan 2024 at 21:06 UTC
Updated:
27 Jun 2024 at 23:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
flashwebcenterHello,
You can use the active class to maintain the sub-menu open:
First add this to a sub-theme
Then you can use some CSS to expand the UL.
nav ul.active {display: Block;}Best wishes,
Alaa
Comment #3
andrés chandía commentedChoukran Alaa, it works but it also has a weird behaviour, I can not click on the next menu which is just under the selected menu, the others are clickable. I add a video (EVM.mp4) for you to see what I'm talking about...
By the way, I have added your function code in this file: "drupal8_w3css_subtheme/js/d8w3css-subtheme-script.js"
And the css code in the file I've created to control the menu: "templates/navigation/menu--labelling-system.html.twig"
tnx!
Comment #4
andrés chandía commentedComment #5
flashwebcenterHello,
Here is the js and css for the sidebar menu.
Here is a video for the menu Sidebar
Here is the sub-theme with everything. Sub Theme
Best wishes,
Alaa
Comment #6
andrés chandía commentedSuperb!!!
Thanks as always great master!!
I just had to add a couple of details to make fit width of background colour in some menus
For the second line added, it was the only way I could make it work....
Thanks again
Comment #8
flashwebcenter