Hello, I cannot figure out how to overlap the header and hero banner on the homepage. The header is already transparent from some code i implemented a while ago. I would need this for both mobile and desktop and preferably be able to change the image without having to continuously fix it in backend. Any help is greatly appreciated. Thankyou!!
My site:
Krstlbrand.com
1 Like
Hey @SAMMYKRSTL
Step 1: Go to Online Store β Theme β Edit code.
Step 2: Search file base.css
Step 3: Paste the below code at bottom of the file β Save
section#shopify-section-template--15979144675525__76675ad2-2b1a-4dee-8401-0f4bed1d673b {
margin-top: -70px;
}
@media screen and (max-width: 989px){
section#shopify-section-template--15979144675525__76675ad2-2b1a-4dee-8401-0f4bed1d673b {margin-top: -55px;}
}
If you need to add background color when scroll down and header is sticky then please add below code as well
#shopify-section-header.shopify-section-header-sticky:not(.shopify-section-header-hidden){ background-color: black;}
Note: Please change βblackβ to as per your requirements.
Let me know if you need help.
1 Like