Guest Posted July 8, 2020 Share Posted July 8, 2020 I'm trying to change the colour of the first menu link in my site's main navigation. The site isn't live yet so I can't link you. The nav looks like this: Shop - Guide - FAQ - About - Contact I want to change Shop to this colour: #C2B277 I can't figure out how to target it using nth-child, nothing seems to work. Any help would be very much appreciated, thank you! Link to comment
tuanphan Posted July 8, 2020 Share Posted July 8, 2020 You can setup password & share url. Difficult to help without checking 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
Guest Posted July 19, 2020 Share Posted July 19, 2020 https://wellworndenim.squarespace.com password: wellworndenim Thanks a lot! Link to comment
tuanphan Posted July 20, 2020 Share Posted July 20, 2020 8 hours ago, wellworndenim said: https://wellworndenim.squarespace.com password: wellworndenim Thanks a lot! Add to Home > Design > Custom CSS header#header [href="/shop"] { color: #c2b277; } 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 July 20, 2020 Share Posted July 20, 2020 7 hours ago, tuanphan said: Add to Home > Design > Custom CSS header#header [href="/shop"] { color: #c2b277; } That's perfect, thank you so much! May I ask you one more please? I'm trying to set it so when I hover over the individual social icons in the footer, they change to opacity 1. I have this code: .social-custom { text-align: center; font-size: 3em; word-spacing: 20px; opacity: .5; transition: .5s } .social-custom a:hover { opacity: 1; } <div class="social-custom"> <a href="tel: 0777 777 777"><i class="fab fa-whatsapp"></i></a> <a href="https://www.etsy.com/uk/shop/wellworndenim"><i class="fab fa-etsy"></i></a> <a href="https://www.instagram.com/wellworndenim/"><i class="fab fa-instagram"></i></a> </div> The above is not working. If I put: .social-custom:hover Then all three of the icons have the desired effect upon hover, but for some reason I cannot target individual icons. This works in standard CSS, but I'm obviously missing something with SP code... Cheers! Link to comment
Guest Posted July 20, 2020 Share Posted July 20, 2020 Figured it out, posting just in case anyone searches this. The dimmed opacity needed to target the link directly too, ie: .social-custom a { opacity: .5; transition: .5s } .social-custom a:hover { opacity: 1; } Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.