Archived topic
Disable Dropdown Menu Click on third level sub menus
19 replies · Started by maxms on October 6, 2020
How are you adding the script right now? Can you make it load in the footer?: https://developer.wordpress.org/reference/functions/wp_enqueue_script/
OK, when I load it in the footer, the console shows the <li> tags for the menu items with my custom class.
Aha, progress. Now try this: https://generatepress.com/forums/topic/disable-dropdown-menu-click-on-third-level-sub-menus/#post-1479280
Yaaaaaas! It's working! You are the absolute best. Thank you so much!
Awesome! You can remove both console.log() lines now.
Glad I could help! :)