Hi!
I want to change the colour of ‘Emergency Dental’ to red bold in the mega menu. and potentially align it to the right. Any ideas?
Hi @MCoordinator,
you have several options here.
The easiest one would be to change the navigation label from “EMERGENCY DENTAL” to something like
<span class="highlight">Emergency dental</span>
and add this code to your CSS
.menu ul li .highlight{
text-transform:uppercase; {# transforms the text to uppercase #}
color:#32C632; {# Replace this with your color code #}
}
Another option would go with so-called pseudo-classes which would look something like this:
.menu ul li:nth-of-type(5){ {# you'll need to test the numbers)
text-transform:uppercase; {# transforms the text to uppercase #}
color:#32C632; {# Replace this with your color code #}
}
The benefit is that you don’t have to modify the navigation, the downside is that if you change the navigation, you’ll change the CSS.
best,
Anton
Can you help me with where and how to paste that into the CSS?
I’m still not having any luck.
Hey @MCoordinator,
The easiest and best way would be to paste the CSS in one of your theme CSS files that can be found inside the theme folder in the design-manager.
Best place to put it would be the theme.css(might be called theme-overides.css or similar) if you don’t want to dive into the CSS inheritance “game” which also might be different from theme to theme.
If you should not have access to the Design Manager(see Screenshot)
you have basically three options.
Also - if you could share a link to a page(not a template preview from the design-manager) I could give you a ready-to-use CSS code
best,
Anton