MayaEm Posted February 21, 2022 Share Posted February 21, 2022 Site URL: https://greenhydrogen.co.nz Hi, I'm looking for a solution here as I have tried everything that I could find on this forum. I have some anchor links in my menu which work perfectly on desktop but on mobile - the menu opens and doesn't close while clicking on them. I have to manually close the menu to get to the clicked section. I have tried loads of code that I found on this forum, yet nothing seems to work for me. site: www.greenhydrogen.co.nz Thanks, Link to comment
Kykelikyvik Posted February 22, 2022 Share Posted February 22, 2022 I have the same issue. Following Link to comment
SamBoyle Posted February 23, 2022 Share Posted February 23, 2022 Also having the same problem on a client site Link to comment
tuanphan Posted February 27, 2022 Share Posted February 27, 2022 You can consider forcing desktop menu appears on mobile (& remove burger). If you need this, just share site url, we can give the code Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
MayaEm Posted February 27, 2022 Author Share Posted February 27, 2022 H 13 hours ago, tuanphan said: You can consider forcing desktop menu appears on mobile (& remove burger). If you need this, just share site url, we can give the code that would be awesome, the website is: www.greenhydrogen.co.nz The Squarespace team answered that they are working on the issue but I have noticed this has been ongoing for the past 2 years by the look of the posts... Link to comment
tuanphan Posted March 3, 2022 Share Posted March 3, 2022 On 2/28/2022 at 2:51 AM, MayaEm said: H that would be awesome, the website is: www.greenhydrogen.co.nz The Squarespace team answered that they are working on the issue but I have noticed this has been ongoing for the past 2 years by the look of the posts... I see you solved with this script code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('.header-menu-nav-item a').click(function(){ $('body').removeClass('header--menu-open'); $('button.header-burger-btn.burger').click(); }); }) </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
MayaEm Posted March 3, 2022 Author Share Posted March 3, 2022 13 hours ago, tuanphan said: I see you solved with this script code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('.header-menu-nav-item a').click(function(){ $('body').removeClass('header--menu-open'); $('button.header-burger-btn.burger').click(); }); }) </script> It seems working just now, didn't a couple of days ago. Link to comment
MaryPhilip_ Posted December 3, 2023 Share Posted December 3, 2023 Hi there, For anyone having problems with this, I created a solution for a client's website and mine. Whilst I am testing out the effectiveness of the installation guide this December (2023), I'm offering a 15% discount for testers. You can check it out here: https://www.maryphilip.com/squarespace-code-shop/p/fix-anchor-link-issue-mobile-squarespace Discount code: THANKSTESTER for 15% off. 🙂 Hi 👋 I'm a Squarespace Expert Member, Circle Member & only Squarespace Authorised Trainer in Scotland. Check out my portfolio at Mary Philip. Hit the little 👍 if I've helped. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment