Jump to content

Sticky menu mobile

Recommended Posts

Site URL: http://www.timjobling.co.uk

Hi,

I have added a sticky menu to my website which appears on scroll-up. It looks great and I love the way it works, however it is creating an issue on my mobile site where my logo is covering the Menu dropdown. Is there some code to link the mobile menu to the sticky header so they both appear in scroll up, or alternative use the desktop menu on mobile so the buttons are accessible.

Thanks, 

Tim. 

Link to comment
1 hour ago, timjphoto said:

Site URL: http://www.timjobling.co.uk

Hi,

I have added a sticky menu to my website which appears on scroll-up. It looks great and I love the way it works, however it is creating an issue on my mobile site where my logo is covering the Menu dropdown. Is there some code to link the mobile menu to the sticky header so they both appear in scroll up, or alternative use the desktop menu on mobile so the buttons are accessible.

Thanks, 

Tim. 

This code hides you buttons on mobile. You can try the following one to overwrite it

@media only screen and (max-width: 800px){
  #header #topNav {
    display: block;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Hi,

Thanks very much for your reply. That's great, it shows the navigation from my desktop site which is perfect, do you know if it's possible to centre the nav under the logo just for the mobile site, I tried with my very basic knowledge of code but I couldn't get it work. The only problem is the mobile view dropdown menu is still visible behind the header, is there anyway to hide this?

Thanks.

 

 

 

 

 

 

Link to comment

I seem to have solved it using this code:

 @media only screen and (max-width: 800px){
  #header #topNav {
    display: block;
    position: absolute;
    top: 80%;
  left: 50%;
  transform:translate(-50%,-50%)
  
  }
}

#mobileMenuLink {
   display: none !important;
}

It seems to work fine, I'm certainly no code expert so if there is a more effective way I'd love to hear.

Link to comment

It seems fine at the moment

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.