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
- Add Useragent to the body class?
- How to include one class/instance without using global variables
- How Can I Have A URL Changed Based on the Originating URL?
- Switch to other theme at URL
- Is there a way to separate a site inside a network (multisite) into its own wp site?
- What is the correct way to do a mobile theme for WordPress?
- Https Redirect infinite loop in Mobile browsers
- burger on mobile
- Using SRCSET with Images and Featured Images
- Old Site displays on Mobile View, not New Site
- Code displaying plugin for a mobile WordPress blog? [closed]
- Different Front page for Mobile
- My Temptation theme is showing two of the same menu at the top. How do I remove the one that the theme comes with? Please help! [closed]
- Make CSS Changes To Only Affect Mobile Browser [closed]
- How to load different homepage on Mobile.?
- WordPress Menu Exchange On Tablet’s Orientation
- Changing theme = change home page for mobile visitors?
- WPTouch – how to remove shortcodes or make shortcodes function
- How to remove sidebar primary widget on Mobile on category page [closed]
- Menu Not Showing on Mobile
- Create theme for mobile phones and tablets only?
- How to hide custom sidebar on mobile
- Adding a template in WPTouch
- Twenty Eleven Theme Adjusts for iPhones. How to stop this feature?
- My site on mobile version is not giving responsive view
- How do you remove header sitewide from mobile only?
- WordPress server banning IP
- Mobile navigation javascript problem
- Mobile view: how to remove right/left margin from the specific widgets?
- Shortcode function not showing up on mobile browser
- How do I make elements in mobile only reverse order?
- How to make in wordpress a gallery with 3 colums to 1 on mobile devices responsive?
- Different Google Analytics code based on Users Device
- New Styles Not Rendering On Mobile Phone and Tablet
- WordPress on mobile devices with new data after updating page
- Decide how Hero image appears on mobile
- deactivate product-page image slider on mobile
- Mobile menu not working – jQuery error?
- Should I detect the device or the page first?
- MobilePress plugin and WordPress 4.1 update
- javascript errors on mobile browser, not on desktop
- How do I use CPT and permalinks with a mobile theme?
- Custom page template not working on mobile
- Add Quicksand for mobile devices