Home > other >  Shopify: Header navigation color changes for only homepage
Shopify: Header navigation color changes for only homepage

Time:09-06

Trying to change the color of the nav menu just for the homepage in Shopify but couldn't find any solution to it. I tried to call #MainContent(homepage) and header classes but nothing happened.

CodePudding user response:

Try this:

  1. Go to Themes
  2. Click Customize on your main theme
  3. Mouse over a block of text on the page and then click the button, or the Add Block button (Don't click Add Section).
  4. From the dropdown, select Custom HTML
  5. Paste this in the HTML field:
<style>
  nav * {
    color: red !important;
  }
</style>
  • Related