Shopify themes, liquid, logos, and UX
id like for the home screen to auto play the video without the consumer having to press play.
is this possible on dawn theme?
Solved! Go to the solution
This is an accepted solution.
Updtade this on live 106 in video section
{{
section.settings.video
| video_tag:
image_size: '1100x',
autoplay: true,
loop: section.settings.enable_video_looping,
controls: true,
muted: true
}}
This is an accepted solution.
To remove controls paste this instead:
{{
section.settings.video
| video_tag:
image_size: '1100x',
autoplay: true,
loop: section.settings.enable_video_looping,
controls: false,
muted: true
}}
Also to remove play button, on top of section on first line add this:
<style>
span.deferred-media__poster-button.motion-reduce {
display: none !important;
}
</style>
Hi Andia,
You can do it like this:
<video autoplay muted>
<source src="movie.mp4" type="video/mp4">
</video>
where does it go?
it has been added here.
Hi @Andia
You can try to add this code to your theme.liquid file, before </body> to check
<script>
document.addEventListener("DOMContentLoaded", function() {
// Wait for the entire page to load
window.onload = function() {
// Find the button by ID
var button = document.getElementById('Deferred-Poster-Modal-39126588358970');
// Check if the button exists
if (button) {
// Click the button
button.click();
}
};
});
</script>
- Found this helpful? Hit "Like" and "Accept as Solution"! Support me: Donate!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is an accepted solution.
Updtade this on live 106 in video section
{{
section.settings.video
| video_tag:
image_size: '1100x',
autoplay: true,
loop: section.settings.enable_video_looping,
controls: true,
muted: true
}}
doesnt seem to work here
No, You need to go in themes codes, under sections you need to find video and under line 106 change code.
oh amazing!! is there a way i can remove this
It doesn't work on Chrome but it works on Firefox and Safari 😞
- Found this helpful? Hit "Like" and "Accept as Solution"! Support me: Donate!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
not working
Hi @Andia ,
May I suggest to update code these steps:
1. Go to Store Online-> theme -> edit code
2. sections/video.liquid
3. Add code below to top of file
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
if($('.video-section__poster').length > 0){
$(".video-section__poster").click();
$(".video-section video").on("loadeddata", function() {
var video = $(" .video-section video").get(0);
video.play();
});
}
});
</script>
how can i remove this:
i also want to hide the controls on hover
This is an accepted solution.
To remove controls paste this instead:
{{
section.settings.video
| video_tag:
image_size: '1100x',
autoplay: true,
loop: section.settings.enable_video_looping,
controls: false,
muted: true
}}
Also to remove play button, on top of section on first line add this:
<style>
span.deferred-media__poster-button.motion-reduce {
display: none !important;
}
</style>
thank you!!
where I need to put this code?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025