How to disable right click on impact theme?

How to disable right click on impact theme?

zeyna111
Tourist
10 0 2

Thanks!!

Replies 6 (6)

Moeed
Shopify Partner
7544 2035 2501

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

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


sahilsharma9515
Shopify Partner
1280 165 250

Hi @zeyna111 Please add the below code:

 

document.addEventListener('contextmenu', function (event) {
    event.preventDefault();
});

Please follow the steps:

  1. Login in shopify admin.
  2. Click on the Online Store.
  3. Then click on the button next to Customize in live Theme.
  4. Click Edit Code.
  5. Search theme.liquid in the code in left hand side in your theme.
  6. Add the following code in the bottom of the file above </body> tag

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


zeyna111
Tourist
10 0 2

doesnt work...

topnewyork
Astronaut
1368 165 224

Hello, @zeyna111 
Please share "Store URL"
Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month

ZestardTech
Shopify Partner
6147 1099 1475

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!

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
zeyna111
Tourist
10 0 2

doesn't work...