Disable right click option in sense theme

Topic summary

  • Goal: Disable right-click in the Sense theme. The original code used by the poster does not work on iOS devices; an app-based attempt also failed.

  • Suggestion 1: Apply a CSS class with pointer-events: none; (e.g., .disable-right-click { pointer-events: none; }). This targets interaction on elements but is presented as a potential approach.

  • Suggestion 2: Edit the theme’s theme.liquid file and add additional code at the end, then save. The exact code and steps are shown in attached images, which are necessary to reproduce the solution.

  • Assets: Screenshot guides are central to the implementation (they illustrate where to find theme.liquid and what to insert).

  • Status: A clear resolution is not confirmed in the thread. Next action is to follow the theme.liquid edit shown in the images and verify on iOS.

Summarized with AI on December 24. AI used: gpt-5.

regarding right click disable option as i used the code to disable it but it’s not working on ios device also tried with and app too

1 Like

Hi,

Have you used CSS pointer events for this ?

.disable-right-click {
    pointer-events: none;
}
  • Here is the solution for you @ajaysaini10
  • Please follow these steps:

  • Then find the theme.liquid file.
  • Then add the following code at the end of the file and press ‘Save’ to save it.

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.