emilypeacock Posted September 28, 2022 Share Posted September 28, 2022 (edited) I know you have to use this CSS code to alter the colour of the sites drop down menu: .header-nav-folder-content {background: #a1bea8 } However is there another code to be able to target specific drop down menus as I want mine to be different colours. Edited September 28, 2022 by emilypeacock Link to comment
joseph81 Posted September 28, 2022 Share Posted September 28, 2022 (edited) You need to get it's block-id and target by that the actual element ! You can use this Chrome extension to see what is the id for the respective element: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en If you want additional information about block id and section id : Edited September 28, 2022 by joseph81 Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated. Link to comment
Ziggy Posted September 29, 2022 Share Posted September 29, 2022 You could target subsequent folders in the navigation using nth-child(n), change the colours as needed and add as many as you want. .header-nav-item--folder:nth-child(1) { .header-nav-folder-content { background: #a1bea8; } } .header-nav-item--folder:nth-child(2) { .header-nav-folder-content { background: red; } } .header-nav-item--folder:nth-child(3) { .header-nav-folder-content { background: blue; } } Hope this helps! 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! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
emilypeacock Posted September 29, 2022 Author Share Posted September 29, 2022 joseph81 unfortunately the block Id extension can't identify the drop down folders. Link to comment
emilypeacock Posted September 29, 2022 Author Share Posted September 29, 2022 Ziggy this doesn't seem to work, is there anything else I need to do? Thankyou! Link to comment
tuanphan Posted September 30, 2022 Share Posted September 30, 2022 22 hours ago, emilypeacock said: Ziggy this doesn't seem to work, is there anything else I need to do? Thankyou! What is your 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment