-
Author
-
June 8, 2018 at 14:27 #200282landolfParticipant
How can I set the functionality to exit the Side Menu and BuddyPress Menu by either clicking anywhere outside the Menu’s or to swipe away the Menu on mobile? Users don’t really know where to click to close the Menu’s.
June 8, 2018 at 15:06 #200293LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
June 8, 2018 at 16:04 #200319RaduModeratorHi,
They are toggle, tap on element to open and tap again to close.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 8, 2018 at 16:08 #200322landolfParticipantHi Radu,
I want users to be able to close these menu’s by clicking anywhere outside the Menu and not only on the toggle buttons. It will be great if you can slide the Menu away on mobile.
June 8, 2018 at 19:30 #200353RaduModeratorOk Just add this code to wp-admin -> theme options -> Quick Javascript
COPY CODE$( document ).ready(function() { /* Close sidemenu and second menu when clicking outside only on mobile XS */ $(document).click(function (event) { if (!$(event.target).closest('.second-menu').length && $('body').hasClass('device-xs')) { $("body").removeClass("sidemenu-is-open second-menu-is-open"); } }); });
Let me know
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.