Re: Transparent header

Solved

Can you have a transparent web header and solid mobile background?

Wedge
Excursionist
34 0 4

Is it possible to have a transparent header for web view and solid colour background for mobile? Reason is, in mobile it moves my logo and gets lost in the image.

Accepted Solution (1)
Denis_A
Shopify Partner
289 39 52

This is an accepted solution.

@Wedge 

Sorry, I made a mistake.
Change color to background
Screen Shot 2020-04-24 at 8.51.16 AM.png

Get help with your Shopify store that you are looking for.
Shoot me an email: [email protected]
https://thewebave.com/

View solution in original post

Replies 15 (15)

Denis_A
Shopify Partner
289 39 52

@Wedge 

Yes, that's possible. What's your store URL?

Get help with your Shopify store that you are looking for.
Shoot me an email: [email protected]
https://thewebave.com/
Wedge
Excursionist
34 0 4

wedgedogcollection.com


Denis_A
Shopify Partner
289 39 52

@Wedge 

Add this piece of code at the bottom of your theme.scss file:

.header-wrapper {
  @media only screen and (max-width: 590px) {
     position: relative !important;
  }
}
.site-header {
  @media only screen and (max-width: 590px) {
     background-color: rgba(66, 66, 66, 0.89) !important;
  }
}
Get help with your Shopify store that you are looking for.
Shoot me an email: [email protected]
https://thewebave.com/
Wedge
Excursionist
34 0 4

Thank you Denis, that worked great. Is there any way to make the header white and the menu black just for mobile? If no the grey box works too.

Denis_A
Shopify Partner
289 39 52

You are welcome.
Just change rgba(66, 66, 66, 0.89)  to #fff

And add this code

.header-wrapper.header-wrapper--transparent .burger-icon, .icon-cart {
  @media only screen and (max-width: 590px) {
     color: #000 !important;
  }
}
Get help with your Shopify store that you are looking for.
Shoot me an email: [email protected]
https://thewebave.com/
Wedge
Excursionist
34 0 4

Ok it's half working for some reason the burger icon is staying white but only on the home page.

Denis_A
Shopify Partner
289 39 52

Add this

.header-wrapper.header-wrapper--transparent .burger-icon {
  @media only screen and (max-width: 590px) {
     color: #000 !important;
  }
}
Get help with your Shopify store that you are looking for.
Shoot me an email: [email protected]
https://thewebave.com/
Wedge
Excursionist
34 0 4

Still nothing

Denis_A
Shopify Partner
289 39 52

@Wedge 
Your store is password protected now. I can't get access to the code

Get help with your Shopify store that you are looking for.
Shoot me an email: [email protected]
https://thewebave.com/
Wedge
Excursionist
34 0 4
Sorry yes the password is Hudson
Denis_A
Shopify Partner
289 39 52

This is an accepted solution.

@Wedge 

Sorry, I made a mistake.
Change color to background
Screen Shot 2020-04-24 at 8.51.16 AM.png

Get help with your Shopify store that you are looking for.
Shoot me an email: [email protected]
https://thewebave.com/
Wedge
Excursionist
34 0 4

Woooo! it's perfect thank you for all your help.

RFS
Excursionist
17 0 3

How can this be done for the Crave version 3.0.0 theme, could you please help me 

made4Uo
Shopify Partner
3849 717 1194

Hi, 


For people who wants to spare the headaches on adding a transparent header, check the video below. This works with scrolling down. No app being use, just a few lines of code. No crazy javascript code. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free

Traxx-Committee
Visitor
1 0 0

Hey how can I control the transparency for my header? I don't want header all the way transparent. I just want to change it to maybe 80 or 75% opacity?