louis1996 Posted October 7, 2021 Posted October 7, 2021 Site URL: https://www.warners-stores.co.uk I have a folder in my nav bar that displays the stores for a brand I'm working with. On desktop you can click on the name of the folder and it takes you to the first page in the folder, but also hides the first page when you hover over the folder. However on mobile this obviously doesn't work as you can't hover. My question is; how can I hide the first page in the folder on mobile only, and leave the desktop version working as it is. Thanks in advance for your help! The site is: www.warners-stores.co.uk And the functionality is under the stores tab.
Beyondspace Posted October 7, 2021 Posted October 7, 2021 2 hours ago, louis1996 said: Site URL: https://www.warners-stores.co.uk I have a folder in my nav bar that displays the stores for a brand I'm working with. On desktop you can click on the name of the folder and it takes you to the first page in the folder, but also hides the first page when you hover over the folder. However on mobile this obviously doesn't work as you can't hover. My question is; how can I hide the first page in the folder on mobile only, and leave the desktop version working as it is. Thanks in advance for your help! The site is: www.warners-stores.co.uk And the functionality is under the stores tab. You can add to Home > Design > Custom Css @media only screen and (max-width: 800px) { /*Hide All in Mobile*/ [data-folder] .header-menu-nav-item:nth-child(2) { display: none; } } .header-nav-list .header-nav-folder-content div.header-nav-folder-item:first-child { /*Show all in desktop*/ display: block; } Support me by pressing 👍 if this useful for you BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Beyondspace Posted October 7, 2021 Posted October 7, 2021 Desktop Mobile: BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
louis1996 Posted October 7, 2021 Author Posted October 7, 2021 1 hour ago, bangank36 said: You can add to Home > Design > Custom Css @media only screen and (max-width: 800px) { /*Hide All in Mobile*/ [data-folder] .header-menu-nav-item:nth-child(2) { display: none; } } .header-nav-list .header-nav-folder-content div.header-nav-folder-item:first-child { /*Show all in desktop*/ display: block; } Support me by pressing 👍 if this useful for you @bangank36 That's brilliant, thank you so much for your help!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.