All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
How can I change a single element in the main menu to have a different color (using a theme template)?
We want to change just a single line of text in the drop down menu to have a different color compared to the rest. The rest are white, we want "ПРОТЕИНОВИ" to be in pink.
Could you give me a script to do that? Thanks in advance!
The website URL: https://vidas.bg/
Solved! Go to the solution
This is an accepted solution.
Hi @VIDAS
Try adding below code to end of theme.css file
@media only screen and (min-width: 1024px) {
.submenu.submenu--items-3 li.submenu-item:nth-child(2) ul li.submenu-item:nth-child(5) a {
color: #ea3a86;
}
}
If this information was helpful to you, please give it a Like. If it resolved your issue, kindly hit Like and mark it as the Solution! Thank you!
This is an accepted solution.
Hi @VIDAS
Try adding below code to end of theme.css file
@media only screen and (min-width: 1024px) {
.submenu.submenu--items-3 li.submenu-item:nth-child(2) ul li.submenu-item:nth-child(5) a {
color: #ea3a86;
}
}
If this information was helpful to you, please give it a Like. If it resolved your issue, kindly hit Like and mark it as the Solution! Thank you!
Thanks a ton!
@VIDAS Please follow below steps to change single element menu color. Let me know whether it is helpful for you.
a.submenu-item__link[href^="/pages/protein-drinks"] {
color: #ea3a86 !important;
}