I have, I think, successfully added my custom liquid to my dawn theme to display a video as my banner on my homepage (from the edit theme. not css code). However, I cannot seem to position the video under the header. I don’t want a white gap under the header. I want the video directly under the header. I have tried different ways but I cannot figure it out.
The video I uploaded to my files on my shopify account and then inspected the code and added height and width. Worked fine. But how do I code the position?
Tip: before editing the code, always go to Online store → actions —> download theme file (and it will email you the theme link ) this way you have a backup of the code in case you mess something up
Also tried adding the bottom code you suggested under header.liquid in “sections” under a code I had added previously to the banner image I had. However, it still didn’t remove the white gap above the video. I added this:
Thankfully no it did not affect the other elements. At least for those lines in base.css.
But for for mobile view, i noticed it is easier on the eye to leave the gap above the video.
But there is still a gap under the video for mobile view. This is due to the shopify template. Changing the rem padding for .spaced-section {margin-top: 5rem; affects the all elements (in base.css). So I’m thinking of moving the block up instead but I dont know how.