SoSwellTanya Posted April 9 Share Posted April 9 Hello...On desktop I have my navigation links in a drop-down folder to make everything clean looking, however on mobile when you click on the hamburger you get the folder appear and then you have to click again to see the links. I'd love to take this step out and just have the links show up when the hamburger is clicked. I attached my current view and what i'm looking to do with a site already doing it for inspo. Thanks! Screen Recording 2024-04-09 at 12.15.05 PM.mov Screen Recording 2024-04-09 at 12.14.48 PM.mov Link to comment
abibacon Posted April 9 Share Posted April 9 Hey @SoSwellTanya, you'll want to add all links to your Main Navigation (Dropdown & Separate Links) and then use CSS to hide the individual links on Desktop, and the Dropdown on Mobile. @media only screen and (min-width: 767px) { .header-nav-item:nth-of-type(2), .header-nav-item:nth-of-type(3), .header-nav-item:nth-of-type(4) { display: none; } } @media only screen and (max-width: 766px) { .header-menu-nav-item:nth-of-type(1) { display: none; } } Squarespace Developer based in Hampshire, England If you'd like to make a contribution for my time you can Buy Me A Coffee. Reach out for Custom Coding - abibacon.com Developer & Support Specialist at will-myers.com (Affiliate Link) 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