Stealing or copying the image from the websites, created by other persons, is not a good practice. Many people perform this activity for their own profit may be that’s why some websites restrict the users to do this. Disabling the right click on the images may be an option for you to prevent a non-technical user to save your image and the content.
You can disable the right click through any of the methods discussed below.
The first method which I have used is to insert a small code in “Header.php” template and the second method is to install a plugin called “No Right Click on Images”.
Steps to Disable Right Click on Images in WordPress
Method 1 of 2:
Step 1: Go to the “Appearance” tool, when you hover the mouse on it, the list of options will be displayed click on “Editor”.
Step 2: Then from the Templates click on “Header.php”.
Step 3: Insert the code <body oncontextmenu=”return false”;> in the body tag wherever you want.
Step 4: After doing this ,”Update” the page.
Method 2 of 2:
You can also disable right click on images in WordPress by the use of Plugin. With the plugin you don’t need to play with codes which is a typical task for a non-technical person. You can easily disable the right click by:
Using “No Right Click on Images” Plugin
Below are the Steps to Download & Install the plugin:
Step 1: On Dashboard, hover a mouse on plugins option, and then click on “Add New”.
Step 3: Click on “Install now” button to install it.
Step 4: A dialog box will appear on your screen to confirm whether you really want to install it or not. So click on “OK” to ensure that you are ready.
Step 5: Your installation is complete now. To activate it click on “Active Plugin”.
Step 6: On the top you can see the message “Plugin Activated”. For your convenience I have highlighted the Plugin.
Step 7: To customize it, go to the settings and then choose “No Right Click Images”.
Step 8: check the options you want to enable in your posts and then save the changes.