Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I have videos in my products media gallery, and it displays the option to Download the videos. How do I prevent this?
Thank you.
Solved! Go to the solution
This is an accepted solution.
Never mind. I just added controlslist: 'nodownload' to the video tag.
This is an accepted solution.
Never mind. I just added controlslist: 'nodownload' to the video tag.
Hi,
I am facing same issue and want to disable download, play back from the videos. Where is video tag please?
Thanks
What theme are you using?
Ella Theme
You will want to look for a file like product-thumbnail.liquid and search for "echo media | media_tag".
I don't have the Ella Theme so I can't know for sure where the developer put this code, but depending on how many files there are, you can ctrl+f "echo media | media_tag" in all the files until you find it.
Once you find it, you'll want to make sure that "when 'video' echo media | media_tag" looks something like this: when 'video'
echo media | media_tag: image_size: '2048x', autoplay: true, loop: loop, controls: true, controlslist: 'nodownload', preload: 'none', muted: false
after doing this also disable right clicks on the website to stop further video and photo thefts.
Go to theme.liquid file, search </head> and above it paste this code.
<script> /* don't expect this to work on older ie */ window.oncontextmenu = function () { return false; } </script>
and click save.
That's it.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025