Hello,
I am using Dawn theme.
How can I change the menu bar so that it is transparent and so that the homepage image covers the whole screen?
Thank you,
Hello,
I am using Dawn theme.
How can I change the menu bar so that it is transparent and so that the homepage image covers the whole screen?
Thank you,
Hey @AZ2024 ,
Please add the below-provided CSS code in the Global Custom CSS section:
.shopify-section-header-sticky .header-wrapper {
background: #ffffff;
}
.header-wrapper {
position: absolute;
width: 100%;
background: transparent;
}
Steps:
Thank You.
Hey @AZ2024 ,
Please add the below-provided CSS code to Custom CSS if the previous code shows an error:
.scrolled-past-header .header-wrapper {
background: #ffffff;
}
.header-wrapper {
position: absolute;
width: 100%;
background: transparent;
}
Or, if it still shows an error, please add that CSS code to Online Store > Themes > Edit code > base.css.
Thank You.
Hey @AZ2024 ,
Are you trying to remove the header’s bottom border (line) as well?
If so, please add the below-provided code to the Global Custom CSS section:
.scrolled-past-header .header-wrapper {
background: #ffffff;
}
.header-wrapper {
position: absolute;
width: 100%;
background: transparent;
border-bottom: 0;
}
Thank You.
Hey @AZ2024 ,
Please add the below-provided code to the Online store > Themes > Edit code > theme.liquid before tag to make these changes only on the homepage:
{% if template == 'index' %}
{% endif %}
Also, please remove the previously added code from the Global Custom CSS section, as it is no longer required.
Thank You.
Hey @AZ2024 ,
Sorry for the previous code. Please add the below-provided code to the Online store > Themes > Edit code > theme.liquid before tag to reflect the changes only on the homepage:
{% if template == 'index' %}
{% endif %}
Thank You.
Hey @DevDynamo ,
Thank you for the solution! That code worked for making the navbar transparent only on the home page.
I have a few questions regarding this change:
Thanks so much man!