Shopify / Shopify Tutorials

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

Disable right-click
Published 16 September 2022

It’s really easy to disable right-click 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

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

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

Above closing /head


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!

About Author

Will is a professional Ecommerce Shopify expert (7 years experience) & a professional Filmmaker/Video Editor (17 years experience). Now living between the Isle of Man & Brighton, UK. Highly experienced in Premiere Pro, DaVinci Resolve, After Effects, Shopify, WordPress & SEO. Owner of Teckers, Bounce Color, Stunt Camera Crew & more.


  • Iwona
    16 November 2022 at 1:22 pm

    This is really helpful! Does this slow down site speed at all?

    • Will Sutton
      2 December 2022 at 8:01 pm

      Nope, it doesn’t slow the speed down. Glad you like it!


Leave a Reply