Shopify themes, liquid, logos, and UX
Hello everyone.
I am currently trying to change the colour on a specific menu item & the dropdown items with it, as well as making the menu header bold.
Specifically, I would the "Back to School" to be permanently red and bold (as opposed to only red when hovered over), and the following items on the drop down to be red.
I have tried to implement many different types of code within theme.css at the bottom of the page, such as
summary[data-href="/pages/contact-us"] {
color: blue !important;
}
OR
.site-nav__link[href="/collections/final-sale"] {
color: red;
}
but I have had no luck with this unfortunately.
Massive thanks in advance to anyone with a solution on implementing this!
Solved! Go to the solution
This is an accepted solution.
Solved!
Here is the following code for anyone needing this in future.
.nav-bar__item a[href="/collections/back-to-school"] {
color: red;
}
.nav-bar__item a[href="/collections/back-to-school"] {
background-colour: #ff0303;
}
.nav-bar__item a[href="/collections/back-to-school"] {
font-size:22px;
font-weight:bold;
}
Hi, @Toptoys2uHS.
Please share your store URL and password.
Hello There,
Please share your store URL and password.
So that I will check and let you know the exact solution here.
This is an accepted solution.
Solved!
Here is the following code for anyone needing this in future.
.nav-bar__item a[href="/collections/back-to-school"] {
color: red;
}
.nav-bar__item a[href="/collections/back-to-school"] {
background-colour: #ff0303;
}
.nav-bar__item a[href="/collections/back-to-school"] {
font-size:22px;
font-weight:bold;
}
Thank you!
Could you be so kind to tell me where I have to paste this code exactly?
Hello,
You can post this at the bottom of theme.css on the website theme code editing area
I'm using the Design "Ride".
I couldn't find the theme.css .
Any other ideas? 😕
Hello Nanaki,
I am not sure what it could be called as I use a different theme.
Essentially you just need to find the asset of code which contains the majority of code to control your site, and you should be able to add it in there.
Don't forget to make a duplicate before you make any changes in case it breaks your site.
Best of luck.
my website url is trenfort.com
It is based on a ride theme. I want to change the color of the menu bar to black color but when I try to change it from the theme option in the color scheme it also changes the color of the body and product page. Hence the black color text is not visible anymore!!
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024