Change colour on header when mega menu is open

Wibke_Loh
Excursionist
33 0 5

Hi, 

 

Is there a way to change the transparent header to white when mega menu is open? 
I'm using Prestige theme, my store is: www.todecay.com

 

Thanks in advance 🙂 

Replies 2 (2)

AnneLuo
Shopify Partner
176 39 46

Hi, @Wibke_Loh 

You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code to the head tag

<style>
  .shopify-section--header {
    background-color: #fff !important;
  }
</style>

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me on luomingxia@shinetechsoftware.com.
Wibke_Loh
Excursionist
33 0 5

Hi, 

 

This changes the background to white all the time. I only want it to change when mega menu is open.