Shopify themes, liquid, logos, and UX
Hey @zeyna111
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<script>
document.addEventListener('contextmenu', function (event) {
event.preventDefault();
});
</script>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @zeyna111 Please add the below code:
document.addEventListener('contextmenu', function (event) {
event.preventDefault();
});
Please follow the steps:
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
Best Regards
Sahil
- Your
doesnt work...
Hello, @zeyna111
Please share "Store URL"
Thanks!
Hello @zeyna111,
Here are the steps to apply the necessary changes in your Shopify store:
In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
Locate layout>theme.liquid and paste the following code just before the closing </body> tag:
<script type="text/javascript">
document.addEventListener('contextmenu', function(e) {
e.preventDefault();
});
</script>
Let me know if you need further assistance!
doesn't work...
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025