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 writing a date localiser plugin - Check out the proof of concept on YouTube and let me know what you think of it You might want to check out my Squarespace template finder Or have a look at my other Squarespace tips Looking for a Squarespace developer,? Book a chat or Drop me a line 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