rhonad Posted November 21, 2021 Share Posted November 21, 2021 Site URL: http://www.thesupremecollective.co.uk Hi everyone! I'm so hoping someone will be able to help me. I've scoured these forums and also the the web and feel like I'm getting closer but still no joy as of yet! I wanted a minimalist look for my navigation menu, so I've put all my nav links in a folder - this works great on desktop. However when on mobile, I don't like that you click the burger icon and then you have to go and click 'Menu' (which is what I've named my parent folder) to get the list of links. I'd rather those links just be there straight away. I believe the key is in setting aria-expanded to true. I'm a beginner coder (at best! ha!) Any help would be much appreciated. I've put this in Design> Custom CSS: // Trying to make the mobile menu automatically show as dropped down - doesn't work! // #mobileNav .folder-parent a { aria-haspopup: "false" !important; aria-expanded: "true" !important; } I'm on squarespace 7.0 Marquee. Website is www.thesupremecollective.co.uk Thank you everyone in advance. x Link to comment
Beyondspace Posted November 21, 2021 Share Posted November 21, 2021 4 hours ago, rhonad said: Site URL: http://www.thesupremecollective.co.uk Hi everyone! I'm so hoping someone will be able to help me. I've scoured these forums and also the the web and feel like I'm getting closer but still no joy as of yet! I wanted a minimalist look for my navigation menu, so I've put all my nav links in a folder - this works great on desktop. However when on mobile, I don't like that you click the burger icon and then you have to go and click 'Menu' (which is what I've named my parent folder) to get the list of links. I'd rather those links just be there straight away. I believe the key is in setting aria-expanded to true. I'm a beginner coder (at best! ha!) Any help would be much appreciated. I've put this in Design> Custom CSS: // Trying to make the mobile menu automatically show as dropped down - doesn't work! // #mobileNav .folder-parent a { aria-haspopup: "false" !important; aria-expanded: "true" !important; } I'm on squarespace 7.0 Marquee. Website is www.thesupremecollective.co.uk Thank you everyone in advance. x Correct approach is @media only screen and (max-width: 768px) { #mobileNav ul li.folder ul { display: block; } #mobileNav ul li .folder-parent>a:first-child:before { content: '' !important; } } rhonad 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
rhonad Posted January 1, 2022 Author Share Posted January 1, 2022 Thank you so much @bangank36 - you don't know how long I've been trying to fix this. I really appreciate your help so much. I added your code - it works perfectly! Thank you again!! The menu parent folder name is slightly misaligned. I've tried centering with 'text-align' property but it didn't work. Any ideas? Link to comment
tuanphan Posted January 2, 2022 Share Posted January 2, 2022 @rhonad to align text "menu", add this CSS #mobileNav .folder-parent a span { display: block; } 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment