Shopify themes, liquid, logos, and UX
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.
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
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!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
ok thanks but now i am facing this problem
@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%);
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024