Tagged: x
-
AuthorPosts
-
February 20, 2017 at 1:36 pm #1378625
justindefoerParticipantFirst off all i want to say im sorry that i ask this question, i have seen this question all over the forums almost scared to asked again :P.
But i want my mobile menu closing after i clicked on a menu item, but not any of the solutions on the forums, not any javascripts or anything else seem to work. could you please help me im out of ideas how to fix it.
http://www.hennequinto.nl/home
the latest piece of code i tried is this one, but not working on my iphone at all.
(function($){ $('.x-navbar .x-nav-wrap.mobile a').on('touchend click', function(){ $('.x-nav-wrap.mobile').toggleClass('in').css('height', 0); $('.x-btn-navbar').toggleClass('collapsed'); }); })(jQuery);thank you in advance
February 20, 2017 at 4:02 pm #1378820
JadeModeratorHi there,
Please try this code:
jQuery(function($){ $('.mobile .x-nav a').on('touchend click', function(){ $('.x-btn-navbar').click(); }); });Hope this helps.
February 20, 2017 at 5:25 pm #1378903
justindefoerParticipantNope sorry doenst work, also cleared the cache of my browser didnt work.
February 21, 2017 at 12:38 am #1379345
Paul RModeratorHi,
You can try this code instead.
jQuery(function($) { $('.ubermenu .ubermenu-target').on('touchend click', function(){ $('.ubermenu-responsive-toggle').click(); }); });Hope that helps.
February 21, 2017 at 7:29 am #1379728
justindefoerParticipantWorked like a charm!
This is why i love x theme so much always a solution!!Thanks!
February 21, 2017 at 8:13 am #1379797
ThaiModeratorYou’re most welcome 🙂
If you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1378625 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
