Guest Posted November 10, 2019 Share Posted November 10, 2019 I have created two folders, one I wish to display on the nav bar on desktop and one I want to display while on mobile. Does anyone know what custom CSS is required to display the folders based on screen size? I've found examples online for displaying blocks based on size but nothing related to the navbar folders/links. Link to comment
tuanphan Posted November 10, 2019 Share Posted November 10, 2019 @AprilRains Can you share link to your site? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Guest Posted November 10, 2019 Share Posted November 10, 2019 (edited) https://www.aprilrainsphotography.com/ - Right now only one folder is enabled (Featured Collections) but I want this hidden on mobile and then I would set up the site to display another folder in it's replacement. Edited November 10, 2019 by AprilRains Link to comment
tuanphan Posted November 10, 2019 Share Posted November 10, 2019 24 minutes ago, AprilRains said: https://www.aprilrainsphotography.com/ - Right now only one folder is enabled (Featured Collections) but I want this hidden on mobile and then I would set up the site to display another folder in it's replacement. Add this code to Home > Design > Custom CSS @media screen and (max-width:640px) { nav.Mobile-overlay-nav.Mobile-overlay-nav--primary .Mobile-overlay-nav-item:nth-child(2) { display: none; } } Create another folder to the right of Featured. Because if you create on the left, the code will need to be changed to nth-child(3) JohanMinnebo 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Guest Posted November 10, 2019 Share Posted November 10, 2019 Thanks, this really helped me out! Link to comment
Aitor Posted February 6, 2020 Share Posted February 6, 2020 (edited) Hi Tuanphan, I am trying to implement a multilingual option following the following tutorial: https://www.bradgood.net/articles/multi-language-content-on-any-squarespace-template I have suceeded making it work on computers, but in mobile devices it doesn´t hide the folders that don´t belong to the selected language. I think it is something to do with the class name of the folders inside the main menu when they are displayed in a mobile device. https://www.ideaitor.com/ It seems other people had the same issue but the solution proposed below didnt work for me. Any clue how I can fix this? Thank you in advance 😄 Edited February 6, 2020 by Aitor Link to comment
JohanMinnebo Posted April 24, 2020 Share Posted April 24, 2020 Hi @tuanphan, thank you for your excellent solutions. I have a similar question to the one above: how do I hide an item inside a folder on mobile? I followed another tip of yours of adding hidden blank nav items inside my 2 column navigation to space it out evenly. And I'd like to do the same on mobile. our website: improbubble.com Link to comment
tuanphan Posted April 25, 2020 Share Posted April 25, 2020 11 hours ago, JohanMinnebo said: Hi @tuanphan, thank you for your excellent solutions. I have a similar question to the one above: how do I hide an item inside a folder on mobile? I followed another tip of yours of adding hidden blank nav items inside my 2 column navigation to space it out evenly. And I'd like to do the same on mobile. our website: improbubble.com Use this a.Mobile-overlay-folder-item[href="/level-6"] { visibility: hidden; } OR this a.Mobile-overlay-folder-item[href="/level-6"] { display: none; } with leve-6 is page url Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
veganedge Posted June 14, 2020 Share Posted June 14, 2020 how would you write this code for 2 or 3 items inside a folder? Is there a more efficient way than doing this for each one? [href="/level-6", "/level-7", "/level-8"] ??? Link to comment
tuanphan Posted June 14, 2020 Share Posted June 14, 2020 5 minutes ago, veganedge said: how would you write this code for 2 or 3 items inside a folder? Is there a more efficient way than doing this for each one? [href="/level-6", "/level-7", "/level-8"] ??? Can you share link & Which items? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
veganedge Posted June 15, 2020 Share Posted June 15, 2020 lets say www.birdmafia.com/elb/shop in navigation "art" folder, hide portfolio and process Link to comment
tuanphan Posted June 15, 2020 Share Posted June 15, 2020 5 minutes ago, veganedge said: lets say www.birdmafia.com/elb/shop in navigation "art" folder, hide portfolio and process div#id5ee15d89ad91175058a12759 .subnav>div:nth-child(n+2) { display: none; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
HMagorRoberts Posted June 24, 2022 Share Posted June 24, 2022 Hi @tuanphan I have a similar issue, on mobile I want to hide the main folder and just have the direct page links? So remove this first click: then the burger icon opens this page only: Is this possible? and could i also take off the back button? Thankyou! Link to comment
tuanphan Posted June 24, 2022 Share Posted June 24, 2022 4 hours ago, HMagorRoberts said: Hi @tuanphan I have a similar issue, on mobile I want to hide the main folder and just have the direct page links? So remove this first click: then the burger icon opens this page only: Is this possible? and could i also take off the back button? Thankyou! Possible. If you share site url, we can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
HMagorRoberts Posted June 28, 2022 Share Posted June 28, 2022 On 6/24/2022 at 5:06 PM, tuanphan said: Possible. If you share site url, we can check easier Here - https://the-second.co.uk/ password thesecond Thank you! Link to comment
tuanphan Posted June 30, 2022 Share Posted June 30, 2022 On 6/28/2022 at 10:11 PM, HMagorRoberts said: Here - https://the-second.co.uk/ password thesecond Thank you! The site looks fine to me. Did you solve it? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
TheClimbCollaborative Posted January 5, 2023 Share Posted January 5, 2023 Hi @tuanphan I am having the same issue with wanting to remove the main folder on mobile and just have the direct page links. Are you able to help? Website is www.glowlyoralcare.com.au Password: GLOWUP2023 Thanks Link to comment
tuanphan Posted January 7, 2023 Share Posted January 7, 2023 On 1/5/2023 at 10:41 AM, TheClimbCollaborative said: Hi @tuanphan I am having the same issue with wanting to remove the main folder on mobile and just have the direct page links. Are you able to help? Website is www.glowlyoralcare.com.au Password: GLOWUP2023 Thanks Hi, I see you figured it out? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
TheClimbCollaborative Posted January 25, 2023 Share Posted January 25, 2023 Yes I did, thank you anyway! 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