-
AuthorPosts
-
March 5, 2015 at 11:01 pm #221469
DanielParticipantHi,
I’d like to know how to close mobile menu when user selects menu item.I’m working on http://blog.pallycon.com using wordpress v4.1, X theme v3.2.1 and X shortcodes v3.0.3.
When I’m using its main menu on mobile device, the dropdown menu blocks most of the screen even after I clicked one of the menu item. I want the menu goes back to its normal status (not showing the dropdown) on select.
How can I do it?
March 5, 2015 at 11:08 pm #221471
DanielParticipantFor your information, I’m using the below custom CSS for Contact Form 7 plugin and fixing mobile menu on top.
.wpcf7-form .wpcf7-not-valid-tip { display:none; } .wpcf7 .screen-reader-response { display: none; } @media (max-width: 979px) { .x-navbar-fixed-top, .x-navbar-fixed-left, .x-navbar-fixed-right { position: fixed; } }March 6, 2015 at 1:15 pm #221807
Nabeel AModeratorHey Daniel,
Thanks for writing in! To fix your issue, please add the following jQuery script via Appearance > Customize > Custom > Javascript
jQuery(document).ready(function($){ $('.menu-item a').click(function(){ $('.x-nav-wrap.mobile').removeClass('in'); }); });Don’t forget to clear your browser’s cache after adding the code.
Let us know how this goes!
March 6, 2015 at 8:44 pm #221997
DanielParticipantHi,
Seems the code works.
Thank you so much for your support!March 7, 2015 at 8:32 am #222222
ThaiModeratorYou’re always welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-221469 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
