Add text and button over custom liquid video

v6
Tourist
17 0 2

Hello, I am using this code in a liquid theme ↓

 

<div class="vid-wrap">
<video autoplay loop playsinline muted>
<source src="https://cdn.shopify.com/videos/c/o/v/25c2e7a7a2f24d9c8c2032984b482594.mp4">
</video>
<div class="content-wrap">
<h2 class="banner__heading h1">
Shop of your choice
</h2>
<div class="banner__buttons">
<a href="" class="button button--primary">Shop All</a>
</div>
</div>
</div>

 

I was wondering how I could reposition the text 'Shop of your choice' and the button 'Shop All' to be overlapping the video, around 3 quarters of the way down of the video, thanks.

Replies 3 (3)

PageFly-Richard
Shopify Partner
4287 973 1626

 

Hi @v6 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
.vid-wrap {
position: relative;
}
.content-wrap{
position: absolute;
top: 20%;
left: 50%;
right: 50%;
}
</style>

You can play with the top,right,left value to change the content position.

 

Your store looks very nice, warm and elegant, but in my opinion, you should consider to add a hero banner on the top of the page and with CTA button on it

PageFlyRichard_0-1713920123939.png

The banner is very significant in hero material. It is the first thing customers see when they visit your website. Let's get consumers to know exactly what you're having in 5 seconds first.

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

v6
Tourist
17 0 2

ok thanks but now i am facing this problem

v6_0-1713920808496.png

 

Vinsinfo
Shopify Partner
261 95 85

@v6 To fix it, please add below code to the ".content-wrap" like in the below attached screenshot. You can change top value to 50% to position the content center.

 

width: 50%;
text-align: center;
transform: translate(-50%, -50%);

 

Vinsinfo_4-1713947293586.png

 

Result will be like,
Vinsinfo_2-1713946057214.png

 

 
Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.