Hello I’m trying to have a video background with a transparent header but i am having difficulty making that happen. The goal is it to look similar to aimeleondore.com. Can you please help? I have tried to use some of the code from other posts but none seem to work. I’m not sure if I need to somehow get the video to be full screen or if the header is the issue. If I need to make the video somehow full screen, how can i do that?
I am using the dawn template.
https://aldremode.myshopify.com/
pw: djokoto
Hello @adjokoto ,
You can try to follow these steps:
- Go to Online Store → Themes → Actions → Edit code
- Go to Sections folder → index.liquid
- Replace the code that generates the image banner with the following code:
<iframe class="hero-video" src="[INSERT YOUR VIDEO URL HERE]" frameborder="0" allowfullscreen=""></iframe>
- Add the following CSS code to the end of the “theme.scss.liquid” file:
.hero-video-section {
position: relative;
height: 100vh;
overflow: hidden;
}
.header-wrapper {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 2;
}
.site-header {
position: relative;
}
.video-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.hero-video {
width: 100%;
height: 100%;
}
Hope this can help. Let us know if you need any further support.
Ali Reviews team.