teckers

Disable Right-Click on Shopify Stores [No App Needed]

disable right-click

It’s really easy to disable by right-clicking on Shopify. You don’t need any apps or extra clutter. You will be able to do this within 1 minute.

There are many reasons why you wouldn’t want right-click enabled on Shopify, some of which:

  • Stop people copying your content
  • Stops people from using your images and videos

Follow the steps below to learn how to disable it.

1. Go to “Online store” > “Themes” > “Actions”

Duplicate your theme for safety (optional)

Duplicate your theme in case you mess something up. It’s good practice to do this before making code changes, then it will be easy to revert back.

Go to “Edit code”

It’s as simple as this, follow the steps below.

shopify dashboard

2. Click “Theme.liquid”

theme.liquid file

3. Copy & paste this code above “</head>”

Copy & paste the below code above the closing </head> tag. Find this by following the steps below:

  1. Type Cmd. + F on Mac (Ctrl. + F for Windows)
  2. Type and search for “/head
<script>

/* don't expect this to work on older ie */

window.oncontextmenu = function () { return false; }

</script>
above closing /head

Done!

That’s all you need to do to disable right-click on your Shopify store. There’s no need to install unnecessary apps, anyone can do this!

Video tutorial

Read more