I’d like to change the menu nav colour on some pages to beige and others to green. I’ve tried this snipped in my theme.liquid file but no dice. My default menu nav colour in my theme editor is beige, but something is still making the ones I want to be beige, green. I’ve tried the code snippets below with no luck:
{% if template.name == 'page.about' or
template.name == 'page.privacy' or
template.name == 'page.returns-refunds' or
template.name == 'page.shipping' or
template.name == 'page.legal' or
template.name == 'page.faq' or
template.name == 'page.default' or
template.name == 'page.contact' %}
.navtext {
color: #004335 !important; /* Green color for specified pages */
}
{% else %}
.navtext {
color: #f5f5dc !important; /* Beige color for all other pages */
}
{% endif %}
AND:
{% if template.name == 'index' or
template.name == 'page.learning-about-lab-grown' or
template.name == 'page.all-about-diamonds' or
template.name == 'page.our-process' or
template.name == 'page.lookbook' or
template.name == 'page.how-to-find-your-ring-size' %}
.navtext {
color: #f5f5dc !important; /* Beige color for specified pages */
}
{% endif %}
sorry quick follow up - how do i make the blog and product pages green too? i’ve followed the logic of your code and applied them to page.product + page.blog but they remain beige
sorry quick follow up - how do i make the blog and product pages green too? i’ve followed the logic of your code and applied them to page.product + page.blog but they remain beige