timjphoto Posted February 6, 2022 Share Posted February 6, 2022 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
Beyondspace Posted February 6, 2022 Share Posted February 6, 2022 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 timjphoto 1 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 pluginIf 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
timjphoto Posted February 6, 2022 Author Share Posted February 6, 2022 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
timjphoto Posted February 6, 2022 Author Share Posted February 6, 2022 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. Beyondspace 1 Link to comment
Beyondspace Posted February 6, 2022 Share Posted February 6, 2022 It seems fine at the moment timjphoto 1 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 pluginIf 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment