sub menu closes on click (mobile)
-
Hello and thank You so much for this wonderful plugin;
I had problems with my responsive menu because it wouldn’t close on clicking anchor links which I solved following a previous post and adding this code on my functions.php of my child theme:add_action('wp_footer','custom_hfe_menu_dropdown_close'); function custom_hfe_menu_dropdown_close(){ ?> <script type="text/javascript"> (function($){ $(document).ready(function() { $('.hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal li').on('click', function() { $('.hfe-nav-menu__toggle').trigger( "click" ); }); }); })(jQuery) </script> <?php }
My problem now is that the menu closes even when I click on the submenu arrow before I can pick an option. I hope someone can help a newbie like me.
Thanks in advanceThe page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘sub menu closes on click (mobile)’ is closed to new replies.