Edit Video Section on Dawn Theme

Edit Video Section on Dawn Theme

jasondane
Excursionist
36 0 11

Hi,

 

I'm adding a video section on my homepage and I doesn't give me an option to hide the controls and mute the video or set it to autoplay. I also want to resize it to the same style as this site: https://arrivalhall.com.au/

My website is: https://www.designfruit.com.au/

 

Thanks

Replies 4 (4)

PageFly-Amelia
Shopify Partner
626 165 238

Hello @jasondane 

This is Amelia at PageFly - Shopify Advanced Page Builder app.

 

You can try the following steps I have provided to help you solve the problem you are facing:

Step 1: Online Store -> Themes -> Edit Code

Step 2: Choose file theme.liquid

Step 3: Add code above the tag </head>

<script>
const el = document.querySelector('video');
e.setAttribute('controls', false);
e.setAttribute('autoplay', false)
</script>

 

Hoping my solution helps you solve your problem.

Best regards,

Amelia | 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) 
➜ Weekly updated Shopify tutorials on YouTube 


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

jasondane
Excursionist
36 0 11

Hi, thanks for replying. Unfortunately, it didn't work. It did no changes

PageFly-Amelia
Shopify Partner
626 165 238

Hello @jasondane 

 

You can try the code below instead

<script>
window.addEventListener('load', () => {
const el = document.querySelector('video');
e.setAttribute('controls', false);
e.setAttribute('autoplay', false)
})
</script>

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) 
➜ Weekly updated Shopify tutorials on YouTube 


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

BSSCommerce-B2B
Shopify Partner
1972 564 561

Hi @jasondane 

- Sorry but in Dawn theme doesn't have an option to hide the controls and mute the video or set it to autoplay. If you want to set, you should add javascript code or edit liquid code at sections/video.liquid

In order to resize video section: 

Step 1: Go to Admin -> Online store -> Theme > Customize: 

view.png

Step 2: Go to Video section, in section setting, click Make section full width

view.png

------------------------------------------------------------------------------------------------------------

I hope these instructions will help you. If they are helpful, don't forget to like and mark as the solution.

Have a nice day sir! 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now