Guest Posted October 21, 2019 Share Posted October 21, 2019 My site is www.jessicagarda.com. I'd like for each link in my navigation (Home, About, Services, etc.) to have a different color when selected or hovered on (Home would be pink, Services would be green, About would be blue, etc.) Link to comment
colin.irwin Posted October 22, 2019 Share Posted October 22, 2019 Add the following to your custom css after any other code that may be there. .Header-nav--primary .Header-nav-inner { a.Header-nav-item[href="/"]:hover { color: pink !important } a.Header-nav-item[href="/about-jessica-1"]:hover { color: blue !important } a.Header-nav-item[href="/services-1"]:hover { color: green !important } a.Header-nav-item[href="/praise"]:hover { color: blue !important } a.Header-nav-item[href="/portfolio"]:hover { color: blue !important } a.Header-nav-item[href="/blog"]:hover { color: blue !important } a.Header-nav-item[href="/contact"]:hover { color: blue !important } } You should then change the color values to those you want. NB. I've inserted named colours but you can get more shades using hex or rgb colours. tuanphan 1 I'm Colin Irwin aka silvabokis. I've been a Squarespace designer & developer since 2013. I remember when it was all wild prairies round these here parts. 🐃🤠 Advice I give on here is free, though I may sometimes post an affiliate link or promote something I've written. That reminds me.. ..you might want to check out my Squarespace template finder or have a look at my other Squarespace tips Speaking of tips, 💲I've got a tip jar that you're welcome to throw a few quid into if you think I've helped you. If you're looking for a Squarespace developer Book a chat or Drop me a line - first meeting is always free Link to comment
ehesslen Posted February 7, 2022 Share Posted February 7, 2022 (edited) I'm trying to make each hover color different on my site and this code isn't working for me. Wells template. Any advice would be super appreciated! Edited to add, here's my site: https://myriadcreative.co/about Edited February 7, 2022 by ehesslen Link to comment
tuanphan Posted February 14, 2022 Share Posted February 14, 2022 On 2/8/2022 at 5:27 AM, ehesslen said: I'm trying to make each hover color different on my site and this code isn't working for me. Wells template. Any advice would be super appreciated! Edited to add, here's my site: https://myriadcreative.co/about Use this CSS for Wells nav#mainNavigation>ul>li:nth-child(1) a:hover { color: blue !important; } nav#mainNavigation>ul>li:nth-child(2) a:hover { color: red !important; } nav#mainNavigation>ul>li:nth-child(3) a:hover { color: green !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!) 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