drop down menu by default
-
hey! i've built a menu featuring parent and child elements. it seems that by default all child items are under its parent with a dropdown menu. and I would like to keep all the menu items visible all the time, (both parent and child) any thoughts?
-
Dear @giselach
Having the Parent and Child elements visible all the time.
Does the following suit your needs?- A Sub-menu
- Sub-menu style set to "Click" in > Customize > Sub-menu >
Following code added into > Lay Options > Custom CSS & HTML > Custom <Head> Content :
<script> window.laytheme.on("newpageshown", function(layoutObj, type, obj){ jQuery(".menu-item-has-children").addClass("show-submenu-desktop"); }); </script>Result (Sub-menu appears open)

Hope this helps @giselach & best wishes 🌻
Richard
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it