Hi Team,
How to make header transparent ,
Like this
Hey @Sohan2198
Follow these Steps:
- Go to Online Store
- Edit Code
- Find theme.liquid file
- Add the following code in the bottom of the file above </ body> tag
{% if template == 'index' %}
<style>
.header {
position: absolute !important;
width: 100% !important;
max-width: 100% !important;
}
header:has(.header__menu-item[aria-expanded="true"]) {
background: white !important;
}
</style>
{% endif %}
RESULT:
If I managed to help you then a Like would be truly appreciated.
Best,
Moeed
I have updated my code above, please add the updated code.
Best,
Moeed
Sence is the same as Dawn/Trade, etc..
Try one of the solutions I offered there:
You can add this code to theme.liquid file under <head>
{% if template == 'index' %}
<style>
#MainContent { margin-top: calc(var(--header-height) * -1); }
.section-header sticky-header { background: transparent; }
.section-header .header__icon .svg-wrapper, .section-header .header__menu-item .icon-caret, ..section-header .header__menu-item span {
color: #ff;
}
</style>
{% endif %}
Result
Hi @Moeed
need to show first white text and logo, after scroll
header bg white & text and logo in black,



