QueHow

A How-To and wiki Blog

  • Operating System
    • Windows
      • Windows 10
      • Windows 7
    • Linux
  • Software
    • Application Software
    • Microsoft Office
      • Outlook
      • Word
      • PowerPoint
  • Internet
    • Browsers
      • Mozilla Firefox
      • Google Chrome
    • CMS
    • Tips & Tricks
  • Website
    • ecommerce
    • Google
    • Social Networking
    • General Websites
  • Mobile
  • Email
    • Gmail
  • Wiki

How to Disable Right Click on Images in WordPress through Code / Plugin

By Neha T Leave a Comment

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.

But it is not much tricky for the professionals who know what you have done, they would simply disable the JavaScript as all Plugins are meant to disable the right click. Still if you want to do so, there are many options available to protect your images.

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”.

How-to-disable-right-click-on-images-step1

 

Step 2: Then from the Templates click on “Header.php”.

How-to-disable-right-click-on-images-step2

 

Step 3: Insert the code <body oncontextmenu=”return false”;> in the body tag wherever you want.

How-to-disable-right-click-on-images-step3

 

Step 4: After doing this ,”Update” the page.

How-to-disable-right-click-on-images-step-4

 

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”.

How-to-disable-right-click-on-images-step1
Step 2: Search for “No Right Click on Images” then press “enter” or click on “Search Plugins” option.

How-to-disable-right-click-on-images-step2

 

Step 3: Click on “Install now” button to install it.

How-to-disable-right-click-on-images-step-3

 

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.

How-to-disable-right-click-on-images-step4

 

Step 5: Your installation is complete now. To activate it click on “Active Plugin”.

How-to-disable-right-click-on-images-step5

 

Step 6: On the top you can see the message “Plugin Activated”. For your convenience I have highlighted the Plugin.

How-to-disable-right-click-on-images-step6

 

Step 7: To customize it, go to the settings and then choose “No Right Click Images”.

How-to-disable-right-click-on-images-step7

 

Step 8: check the options you want to enable in your posts and then save the changes.

How-to-disable-right-click-on-images-step8

You Might Also Like:

How to Disable Right Click on WordPress using Plugin How to Add Custom Registration / Login form in WordPress Using a Plugin How to Add Widget Area to the Header in WordPress How to Disable Comments in WordPress Blog or Page How to Disable Comments on a Specific Page in WordpressHow to Disable Comments on a Specific Page in WordPress How to Add Read More Button in WordPress How to Add a Widget in WordPress How to Enable / Disable Virtual Keyboard in windows 7

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Viewed

  • How to Install and Use TELNET in Ubuntu
  • How to install Hindi fonts in MS Word
  • How to Change a File Extension in Windows 10?
  • How to create a flipkart account in 3 simple steps
  • How to Change Monitor Refresh Rate in Windows 10?
  • How to install IIS on Windows 10
  • How to Insert Clickable Checkbox in MS Word 2016?
  • How to Set Auto Reply in Outlook 2016?
  • How to Login as Administrator in Windows 10?
  • How to Check RAM Size and System Type in Windows 10?

Recent Additions

  • How to Add Hyperlink to Another Sheet in Excel?
  • How to Add and Remove Watermark in Excel
  • How to use Relative and Absolute Cell Reference in Excel?
  • How to Enable and Disable Scroll Lock in Excel?
  • How to Use INDEX and MATCH Functions in Excel?
  • How to Make Bar Graph in Excel?
  • How to Count Duplicate Values in Excel?
  • How to Wrap Text in Excel?
  • How to Round off Numbers in Excel?
  • How to Create a Bell Curve in Excel?

Related Searches

  • How to Set Google Chrome As Default Browser?
  • How to Delete Duplicates in Excel 2016?
  • How to Kill a process in Windows 10?
  • How to Test Internet Speed?
  • How to enable and disable Cookies in Mozilla fire firefox?

Copyright © 2022 · QueHow · Contact Us