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%);
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024