Skip to content

Instantly share code, notes, and snippets.

@micheldore
Last active January 6, 2020 01:28
Show Gist options
  • Save micheldore/bc9ff5968a0203022c10891523558d6d to your computer and use it in GitHub Desktop.
Save micheldore/bc9ff5968a0203022c10891523558d6d to your computer and use it in GitHub Desktop.
Mobile Menu Dropdowns Oxygen Builder:
$(".menu-item-has-children").children("a").attr("href","javascript:void(0);");
$(".menu-item-has-children").attr("onclick", "$(this).children(\".sub-menu\").toggle()")
@micheldore
Copy link
Author

micheldore commented Jan 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment