Last active
January 6, 2020 01:28
-
-
Save micheldore/bc9ff5968a0203022c10891523558d6d to your computer and use it in GitHub Desktop.
Mobile Menu Dropdowns Oxygen Builder:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".menu-item-has-children").children("a").attr("href","javascript:void(0);"); | |
$(".menu-item-has-children").attr("onclick", "$(this).children(\".sub-menu\").toggle()") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Toggle the dropdowns of a Oxygen Builder resonsive menu. Dropdowns in mobile must be turned on in the builder. Be warned that the link of the main menu item (the parent of each dropdown) is rendered useless and is used to toggle the visibility of the dropdowns. Add the two lines of code to your Javascript of the menu item.