Hi,
I want to change the colour of my navigation on the product page only:
I am trying this code, but only seems to target global header:
body.template-product .header__menu-item,
body.template-product .header__menu-item span,
body.template-product .header__heading-link,
body.template-product .header__menu-item a {
color: #863425 !important;
}
URL Jadeo
Thank you so much
Mary
1 Like
Hi Mery
Could you share a password for fronend so we could see the issue ?
Well, that code is not working because you do not have template-product class on body element.
To add it, try this code in layout.theme.liquid. Find body code and replace or add just part
<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %} template-{{ template.name | handle }} {{ template.suffix | handle }}">
note: I added
template-{{ template.name | handle }} {{ template.suffix | handle }}
Before closing double quotes so if your code is slightly different, add that code only.
1 Like
To check, I a min the right file:
in file: theme.liquid
I am replacing line 301 with:
@marycrichton123
Yes just replace line 301, and save
1 Like