Jump to content

Navigation anchor links not working on mobile

Recommended Posts

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
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.