Add text and button over custom liquid video

17 0 2

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


<div class="vid-wrap">
<video autoplay loop playsinline muted>
<source src="">
<div class="content-wrap">
<h2 class="banner__heading h1">
Shop of your choice
<div class="banner__buttons">
<a href="" class="button button--primary">Shop All</a>


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)

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>

.vid-wrap {
position: relative;
position: absolute;
top: 20%;
left: 50%;
right: 50%;

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


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.

17 0 2

ok thanks but now i am facing this problem



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%);




Result will be like,


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