swise512 Posted July 29, 2019 Share Posted July 29, 2019 (edited) Hey, I'm building my site in 7.1 (mainly to get to grips with using it) and I've come across one problem I can't seem to fix. The dropdown navigation has white text & a white background(image attached) My header colour palette is yellow, whereas the main website has a white background, I'm wondering if this is part of the problem. It'd be greatly appreciated if anyone can find any workaround for me. Site is here: https://hexaflexagon-star-bh8p.squarespace.comPasword: 123123 Edited July 29, 2019 by StephenWise1999 Initial Revision Link to comment
Solution tuanphan Posted July 29, 2019 Solution Share Posted July 29, 2019 @StephenWise1999 Add to Home > Design > Custom CSS /* Change dropdown menu background */ .header-nav-folder-content { background: #febf00 !important; } DKP, MadebyMarkham, jbassett and 8 others 6 4 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
swise512 Posted July 29, 2019 Author Share Posted July 29, 2019 That worked perfectly, I'd tried a variation of .header-nav but didn't manage to get it right. Thank you! Link to comment
tuanphan Posted July 29, 2019 Share Posted July 29, 2019 You're welcome. Have a nice week. gcart 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
gcart Posted December 4, 2019 Share Posted December 4, 2019 DeaTuznphan, do you have a way to make the width of the drop down wider according to the width of the text? Thanks, G Link to comment
tuanphan Posted December 4, 2019 Share Posted December 4, 2019 53 minutes ago, gcart said: DeaTuznphan, do you have a way to make the width of the drop down wider according to the width of the text? Thanks, G Yes. You can use custom code to increase dropdown width. Can you share link to your site, i can take a look? 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
Supdude Posted December 9, 2019 Share Posted December 9, 2019 @tuanphan Thank you so much!! I needed to edit the drop down folder links color to black and I used your code as guidance. So I'm guessing that putting: !important tells Squarespace to notice it. /* Change dropdown menu background & link color :) */ .header-nav-folder-content { background: #ffffff !important; color: #000000 !important; a { color: #000000 !important; } } Link to comment
tuanphan Posted December 9, 2019 Share Posted December 9, 2019 16 minutes ago, Supdude said: @tuanphan Thank you so much!! I needed to edit the drop down folder links color to black and I used your code as guidance. So I'm guessing that putting: !important tells Squarespace to notice it. /* Change dropdown menu background & link color :) */ .header-nav-folder-content { background: #ffffff !important; color: #000000 !important; a { color: #000000 !important; } } Have you solved yet? An element can be affected by many CSS. Use important to give your CSS the highest priority. 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
gcart Posted December 11, 2019 Share Posted December 11, 2019 Dear Tuanphan, That is big help. But now all the text pushed to the right as on the attached screen shot. I may be able to correct this in the design section but since I’m using CSS I’d like to do all that in the CSS. And I’d like the dropdown menu to size according to the text. Now the text moves down when it hits the edge of the box. I really appreciate your help. Sincerely, George Cartwright Link to comment
tuanphan Posted December 11, 2019 Share Posted December 11, 2019 @gcart All the code above only affects color and background. Your problem, I think it came from another cause. You can create a new question, and describe the problem in detail. 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
gcart Posted December 11, 2019 Share Posted December 11, 2019 ... I went ahead and found out how to change the text and make it all line up to the left. Here’s a screen show of how I did it. And I got a little transparency which I like. Best, George Link to comment
kaleidoscope123 Posted December 18, 2019 Share Posted December 18, 2019 Hi, Can someone share the code that they use to make the folder drop down transparent? Thanks. JuliaGreenspan 1 Link to comment
westernsaddler Posted December 26, 2019 Share Posted December 26, 2019 Hi, Can someone help me with my site? I would like the drop down menus to be transparent. How can I do this please?https://www.saddle-fit.co.uk Thank you :) Link to comment
tuanphan Posted December 27, 2019 Share Posted December 27, 2019 12 hours ago, westernsaddler said: Hi, Can someone help me with my site? I would like the drop down menus to be transparent. How can I do this please?https://www.saddle-fit.co.uk Thank you :) Add to Home > Design > Custom CSS .folder .subnav { background: transparent !important; } sayreambrosio 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
westernsaddler Posted December 27, 2019 Share Posted December 27, 2019 3 hours ago, tuanphan said: .folder .subnav { background: transparent !important; } Thank you. I have put it into the CSS but nothing has changed on my website. Thank you very much 🙂 Link to comment
tuanphan Posted December 27, 2019 Share Posted December 27, 2019 3 minutes ago, westernsaddler said: Thank you. I have put it into the CSS but nothing has changed on my website. Thank you very much 🙂 try this .folder .subnav li { background: red !important; } gcart 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
westernsaddler Posted December 27, 2019 Share Posted December 27, 2019 31 minutes ago, tuanphan said: try this .folder .subnav li { background: red !important; } Fixed! Thank you so much! I changed it to white as transparent didn't work. Thank you again!! tuanphan 1 Link to comment
MrBerlin Posted February 25, 2020 Share Posted February 25, 2020 Hi there, any chance you could help me with the code to increase the width of the drop down menu for our site www.foreveryoungads.com ? Link to comment
MrBerlin Posted February 25, 2020 Share Posted February 25, 2020 and solved 😂 .header-nav .header-nav-item--folder .header-nav-folder-content { width: 300px; } DKP 1 Link to comment
jeremiahmarsh Posted March 29, 2020 Share Posted March 29, 2020 On 12/27/2019 at 4:00 AM, tuanphan said: Add to Home > Design > Custom CSS .folder .subnav { background: transparent !important; } How do I make it semi-opaque? Link to comment
LondonSimon Posted April 10, 2020 Share Posted April 10, 2020 Hi would you have a code for it to be with 50% opacity Thanks Link to comment
tuanphan Posted April 12, 2020 Share Posted April 12, 2020 On 4/11/2020 at 3:00 AM, LondonSimon said: Hi would you have a code for it to be with 50% opacity Thanks On 3/30/2020 at 2:37 AM, jeremiahmarsh said: How do I make it semi-opaque? .folder .subnav { background: rgba(0,0,0,0.5) !important; } moushi and Darya 2 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
TFC Posted May 5, 2020 Share Posted May 5, 2020 Hi all, I can't figure this out for the life of me! Im trying to get my nav to change to a different background color when selected - or at least change the color of the text when selected. I've tried the suggestions in this thread but i'm now back to the drawing board. My site is www.thefavoriteco.com ❤️ Link to comment
tuanphan Posted May 5, 2020 Share Posted May 5, 2020 1 minute ago, heller said: Hi all, I can't figure this out for the life of me! Im trying to get my nav to change to a different background color when selected - or at least change the color of the text when selected. I've tried the suggestions in this thread but i'm now back to the drawing board. My site is www.thefavoriteco.com ❤️ Add to Home > Design > Custom CSS /* desktop*/ .header-nav-item--active a { color: red !important; } /* mobile */ .header-menu-nav-item--active a { color: red !important; } /* folder */ .header-nav-folder-item--active a { color: red !important; } fingerprintcreative and a1amy 1 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
TFC Posted May 5, 2020 Share Posted May 5, 2020 @tuanphan do you sleep? You're the most helpful human, ever! Thank you! Trying this now! ❤️ Bebrightnz, gcart, Jo_SQSP and 1 other 4 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