dlv118 Posted November 8, 2022 Posted November 8, 2022 Hi, I realized an issue with my client's website design where I wanted to keep the "2nd button" styling for the "ORDER" button on the main mobile mnu page, but not wanting the nth-child rule to apply to folders. Is there a code that can help me keep that from happening (ie. I don't want any other nav item to look like a button except "Order" and "Get in Touch")
Ziggy Posted November 8, 2022 Posted November 8, 2022 Can you share the website URL, page, and password (if applicable)? Thanks! Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
dlv118 Posted November 9, 2022 Author Posted November 9, 2022 @Ziggy Hi! It's www.farmerandthedail.com, any page as long as it's mobile size
Ziggy Posted November 9, 2022 Posted November 9, 2022 You could try and exclude the folder items with this after the CSS selector :not(.header-menu-nav-folder-content) dlv118 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
dlv118 Posted November 14, 2022 Author Posted November 14, 2022 Hi @Ziggy, that seemed to have no effect at all. Do you have any other suggestions?
Ziggy Posted November 14, 2022 Posted November 14, 2022 What CSS have you got added? Can you share it here (just the relevant lines)? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
tuanphan Posted November 21, 2022 Posted November 21, 2022 For example this code @media screen and (max-width: 767px) { .header-menu-nav-item:nth-child(5) a { background:#e8ca6c !important; color: #a62544 !important; width: 200px; border-radius: 10px; text-align: center !important; margin: auto !important; font-family: 'augusto'; font-weight: 100; padding-bottom: 25px !important; padding-top: 30px !important; margin-top: 35px !important; padding-left: 30px; padding-right: 25px; font-size: 26pt } .header-menu-nav-item:nth-child(5) a:hover { background-image: none; border-radius: 10px; background-color: #fff !important } } change it to @media screen and (max-width: 767px) { .header-menu-nav-folder[data-folder="root"]>div>div:nth-child(5)>a { background:#e8ca6c !important; color: #a62544 !important; width: 200px; border-radius: 10px; text-align: center !important; margin: auto !important; font-family: 'augusto'; font-weight: 100; padding-bottom: 25px !important; padding-top: 30px !important; margin-top: 35px !important; padding-left: 30px; padding-right: 25px; font-size: 26pt } .header-menu-nav-folder[data-folder="root"]>div>div:nth-child(5)>a:hover { background-image: none; border-radius: 10px; background-color: #fff !important } } 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment