Shopify themes, liquid, logos, and UX
The header on my site is yellow, so I would like the menu tab font to be in Black to pop. I can do this on Desktop, but on mobile, the menu is pushed into a sidebar, which when selected is black, and the black text blends in. If I change the text to white, then it is fixed on mobile but shows as white on my desktop against a yellow header background.
How can I set my header menu font to be BLACK on desktop but WHITE on mobile? Is that possible? It is currently white on mobile and desktop. If I could figure out how to get my mobile menu out of the sidebar and onto the yellow header then they could stay the same color as well... Either option would fix my issue. Thanks!
Hey @intmotorsports
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
@media only screen and (min-width: 990px) {
.navmenu-link.navmenu-link-depth-1 {
color: black !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025