I was able to find an answer to this provided by @malihu, author of the page to scroll id plugin – as @malihu noted, I was using a one-page menu for my theme, and the function of click to scroll isn’t tied to a page. This code ties the menu action to the scroll and not only a page link.
Mobile menu not auto close on menu link @malihu
<script>
(function($){
$(window).on("load",function(){ $("body").on("click","#slide-mobile-menu .menu-item a[href*='#']",function(){$("#menu-toggle-close")[0].click();}); }); })(jQuery); </script>
Related Posts:
- What is the difference between “SMS Push” and “WAP Push”?
- Proper usage of wp_is_mobile()?
- How do I make my blog iPad / iPhone / Android friendly?
- WordPress REST endpoint with JSON for Mobile App integration
- WordPress on WP7
- Developing mobile version of WordPress site
- How can i disable a plugin for a mobile phone?
- How can I make a wp site in a mobile application?
- Why I am getting Parse error: syntax error when I use ‘wp_is_mobile’?
- Mobile Menu Not Showing
- Querying custom fields with Carrington mobile theme
- Is there any mobile application for WordPress? [closed]
- detect screen width in functions
- A URL that links specifically to the mobile version of my site?
- How to disable/enable specific plugins for a mobile theme?
- Elements floating on top of each other when Resizing or checking site on mobile. Twenty Twelve
- Mobile theme not showing correct page after custom re-writes
- My website is not responsive on mobile devices
- Best method for loading content on mobile – issue with wp_is_mobile
- Why is only one page responsive? [closed]
- Strategy for making a mobile version of an existing site? [closed]
- How can I redirect mobile users to diff url, but also allow them to come back to full site
- Open Menu is not working in Mobile view [closed]
- WordPress website loads fine on desktop browsers but Safari for iOS cannot load it completely [closed]
- Static page for desktop or mobile
- $is_iphone – to redirect a page
- Quick login from mobile phone
- How can I use my blog page as the homepage but only for mobile/tablet visits?
- Dropdown menu not displaying in handheld slide menu effect
- create a button in the header of the mobile menu in the middle of the logo and the menu accordion
- How to disable the topbar in mobile? [closed]
- WordPress mobil will not scroll
- Disable rendering of objects on mobile/above certain screen resolution
- Adapting “wide with” Gutenberg blocks for mobile
- How can I hide/show text only for mobile users?
- Different Home page for Mobile without changing URL
- App in wordpress doesnt fit to mobile screen
- Add audio post from smartphone
- Display posts on a map
- responsive website
- Mobile Menu not working on TwentyThirteen child theme
- change theme when on mobile and also on Ipad portrait view
- Subdomain for WP Mobile Edition and Cloudfare
- How can I stop Jetpack mobile theme from using full size featured images?
- website is viewing as mobile, how do I turn this off?
- Work on two different themes at the same time in wordpress
- How to disable fancybox on small screens
- Add exception to WP Mobile Detector
- Using WordPress as a Mobile App Backend
- WordPress Mobile Edition not working with WP v3.5
- Why doesn’t the mobile version of my website take updates?
- Links not showing up on “AMPforWP”
- Viewing a WordPress website in landscape [closed]
- different startsite for IOS and change menu
- wordpress fancybox responsive mobile or pc version [closed]
- Separate Mobile site
- Not able to see updates my mobile after making updates on wordpress mobile version
- Not working Mobile view and Desktop view properly when we searched on website
- Mobile App Not Posting, Debugging Options
- How to hide or change mobile header logo with Additional CSS or custom PHP
- How to print to the console in Android Studio?
- Is wp_is_mobile() effective?
- Change the default number of posts to show on mobile version
- Disable Linked Gallery Images If Mobile Browser
- How to switch css files according to devices and button click?
- Styleswitcher or themeswitcher to allow user to switch back to standard view from mobile device
- TwentyTwelve child theme mobile menu not working
- How to set different settings for a mobile theme?
- Free starter theme to make mobile websites? [closed]
- Convert WP Menu to a Drop Down for Mobile browser
- Jquery not working on mobile browser
- Create a page for a theme only
- Different Front page for Mobile
- Serve a different theme based on window size
- Change Header Image on Blog Post for Mobile View
- Disable save as image on smartphones using all browsers ( chrome, firefox, ie, cm, opera )
- Updating From Mobile App – Exposing Site to Hacking
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- PHP mobile redirect Endless loop
- Change Image Sizes for Mobile Theme
- Blackberry specific Mobile Redirect plugin? [closed]
- Efficient wp mobile menu
- Thumbnail size problem Desktop vs Mobile site
- How do I make content only load on desktop? [duplicate]
- Shortcode function not showing up on mobile browser
- Where to put code that customizes API
- New Styles Not Rendering On Mobile Phone and Tablet
- Update membership level via API request if using simple membership plugin
- Mobile and Tablet responsive in Elementor but not on the actual site?
- Desktop is class List and Mobile is class Grid
- Disable Top Nav Bar on Mobile
- How to add a fixed shopping cart button on the bottom of the page?
- menu mobile show up even i in desktop mode in Newspaper Theme
- Disable loading Thumbnail On Mobile [closed]
- Multiple devices wordpress website
- the_content() not working in my Android mobile
- Get permalink for a post from inside WordPress and route to a related site
- Changing when mobile menu is displayed
- How to make the Panel // WP-Admin lighter via Mobile
- Responsive Menu: Center vertically [closed]