- This topic has 9 replies, 4 voices, and was last updated 6 years ago by Tom.
-
AuthorPosts
-
February 23, 2017 at 1:59 am #282872David
The mobile menu is sliding away after the user clicked the Menu Item. Any recommendations? Tom, I hope you are feeling better.
Here is the URL:
http://cmcwebdev.com/pounders/Cheers!
February 23, 2017 at 2:11 am #282877LeoStaffCustomer SupportHi David,
I’m assuming you want the mobile menu to close after click? If so this should help:
https://generatepress.com/forums/topic/close-menu-on-mobile-after-clicking/#post-265481Let me know.
February 23, 2017 at 5:24 am #282964DavidYes, that is correct, Leo. Mobile menu to close after click. I set the code in the wp_footer hook. It didn’t work on my end. Any recommendations?
February 23, 2017 at 9:31 am #283059LeoStaffCustomer SupportMake sure you wrap
<script></script>
around it as here: https://generatepress.com/forums/topic/responsive-menu-and-anchor-links/#post-273558Let me know.
February 23, 2017 at 11:33 am #283126DavidThanks for posting that links. Read through and discover there is another set of code for the slide out menu. I failed to write mobile slideout menu.
<script> jQuery( document ).ready( function( $ ) { var settings = { animation_duration: false, place: "left", animation_curve: false, body_slide: false, no_scroll: false, }; $( '.slideout-navigation a' ).on( 'click', function( event ) { $('.slideout-navigation').sliiide( settings ).deactivate(); $( '.menu-toggle.opened' ).removeClass( 'opened' ); $( '.slideout-toggle.opened' ).removeClass( 'opened' ); $( 'body, html' ).removeClass( 'slide-opened' ); $( '.slideout-overlay' ).hide(); $( '.slideout-toggle' ).removeClass( 'sfHover' ); $( document ).off( 'touchmove' ); $( 'body' ).off( 'touchmove touchstart', '.slideout-navigation' ); }); }); </script>
That did it. Thanks!
Cheers!
February 23, 2017 at 11:36 am #283127LeoStaffCustomer SupportGlad you got it working!
February 23, 2017 at 12:29 pm #283164TomLead DeveloperLead DeveloperThis seems to be something that’s being requested more and more, might be worth adding by default.
February 24, 2017 at 1:02 am #283337DavidI would agree to add. Several people tested the site. They all expected the menu to slide away on click.
Thanks! Coffee infusion time coming up.
April 13, 2018 at 7:08 am #549352GeorgeI have the same problem. I use elementor 2.0.5 and elementor pro 1.15.6. My URL is https://skladpodnaem.com/.
I tried to fix the problem myself but didn’t work. Please tell me how to fix problem step by step. I tried to put some code from the forum without any success.
April 13, 2018 at 10:41 am #549671TomLead DeveloperLead DeveloperYou’re using the Elementor menu, so you would have to ask them how to do it with their code.
-
AuthorPosts
- You must be logged in to reply to this topic.