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 Deactivate Account in Instagram?
  • How to Download Private Instagram Stories?
  • How to Slow Motion a Video in PowerDirector?
  • How to Check Who Unfollow You On Instagram?
  • How to Use Boomerang on Instagram?
  • How to Edit Video in PowerDirector?
  • How to Mute Someone’s Stories or Posts on Instagram?
  • How to Hide and Unhide Posts on Instagram?
  • How to Change Video Background in PowerDirector?
  • How to Make a Video Call on Instagram?

Related Searches

  • How to convert JPG to PDF
  • How to Install MySQL Workbench on Ubuntu
  • How to insert PDF into Word
  • How to Enable Macros in Excel 2016?
  • How to Configure Screen saver in Windows 10

Copyright © 2021 · QueHow · Contact Us