Re: Change colour of Active Nav in Header - Debut Theme

Solved

Change colour of Active Nav in Header - Debut Theme

VanIslandWhale
Excursionist
15 0 3

Hello,

 

I'd like to have the current active navigation link in the Header a different colour (#0D4848) than the rest of the navigation to make it more obvious which tab you are currently on. I've included a screenshot from the parent site for reference.

 

Website: https://vanislandwhale.myshopify.com/

 

Thank you!

Screenshot 2023-12-03 153647.png

Accepted Solution (1)

ZenoPageBuilder
Shopify Partner
1052 203 225

This is an accepted solution.

Hello @VanIslandWhale 👋

Inside Shopify Admin, you can go to Edit theme code, open file base.css and add this code at the bottom

 

.site-nav__link--active {
    color: #0D4848 !important;
}

 

The result

Screenshot 2023-12-04 at 09.34.00.png

Hope that helps.

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com

View solution in original post

Replies 11 (11)

suyash1
Shopify Partner
9871 1228 1566

@VanIslandWhale  please add this css to the very end of your theme.css file and check

 

.site-nav--active .site-nav__link--active:hover{color: #0D4848 !important;}
To build shopify pages use pagefly | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30. | Support me
VanIslandWhale
Excursionist
15 0 3

Hi,

 

Unfortunately, this doesn't appear to have worked. I am not seeing any difference.

suyash1
Shopify Partner
9871 1228 1566

@VanIslandWhale - can you accept me as collab? I will send request and do it and let you know what changes I did.. you need not give all the rights, just theme code rights will work

To build shopify pages use pagefly | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30. | Support me

ZenoPageBuilder
Shopify Partner
1052 203 225

This is an accepted solution.

Hello @VanIslandWhale 👋

Inside Shopify Admin, you can go to Edit theme code, open file base.css and add this code at the bottom

 

.site-nav__link--active {
    color: #0D4848 !important;
}

 

The result

Screenshot 2023-12-04 at 09.34.00.png

Hope that helps.

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
VanIslandWhale
Excursionist
15 0 3

Hi,

I don't see Base.css as an option in Shopify Admin.

ZenoPageBuilder
Shopify Partner
1052 203 225

For your theme, you can place the code at the bottom of theme.css

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
VanIslandWhale
Excursionist
15 0 3

Hi there,

 

Sadly this doesn't seem to be working? It appears to be staying white on my end

VanIslandWhale
Excursionist
15 0 3

Nevermind I got it working! Thank you so much!

ZenoPageBuilder
Shopify Partner
1052 203 225

You are welcome!

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com

INA_MSWEB
Shopify Partner
1281 144 164

Hi @VanIslandWhale 


I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the theme.css file:

.site-header, .site-header__mobile-nav {background-color: #0D4848 !important;}

 

 

Regards,

San

If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Design, Migration, Speed, or Custom tasks?  
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin

VanIslandWhale
Excursionist
15 0 3

Hi,

 

This changed the background of the whole header. That is not what I am wanting to do. What ZenoPageBuilder posted above is what I am hoping to do.