Shopify: Header navigation color changes for only homepage

Viewed 24

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.

1 Answers

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