weTAHO
September 28, 2022, 1:37pm
1
Hello,
I am currently building my store and i want my logo at the header to be transparent at the top of the homepage. I am currently using last version of debutify and the theme have a option to have a transparent header that changes when you scroll down. The problem is that the transparent header only works on desktop and not on mobile. I use SVG files for my logo header.
I have tried to edit the themes code but to no success, does anyone know if it is possible to accomplish?
Here’s my shop URL preview : https://7h0kfx8a4reo3h1r-66494365930.shopifypreview.com
Thank you and have a nice day !
Hi @weTAHO ,
Go to Assets > theme.scss.liquid and paste this at the bottom of the file:
@media screen and (max-width: 769px) {
.sticky-header.is-scrolling .site-header__logo .default-logo {
display: block !important;
}
.sticky-header.is-scrolling .site-header__logo .mobile-logo {
display: none !important;
}
}
Hope it helps!
1 Like
Sphurti
September 29, 2022, 7:59am
3
.sticky-header.is-scrolling.transparent-header–mobile .site-header {
background-color: transparent!important;
border-color: #444 ;
width: 100%;
}
add this code in theme.scss
if only for mobile
@media (max-width: 769px){
.sticky-header.is-scrolling.transparent-header–mobile .site-header {
background-color: transparent!important;
border-color: #444 ;
width: 100%;
}
}
make sure don’t miss the brackets
weTAHO
September 29, 2022, 5:12pm
4
Hello @LitCommerce Thank you for your reply, one more question. I should paste it after %endif% line ? Under it ?
weTAHO
September 29, 2022, 5:16pm
5
Just fixed it all. Thank you very much and have a nice day ! @LitCommerce
1 Like
Hi @weTAHO ,
Do you want me to check the last question?