I have inherited a website built by another developer that I’m attempting to do updates on. He somehow managed to disable right click on the site without using a plugin and I have no idea how he did it.
The website is https://tracywrightcorvo.com/
It’s on WordPress using the Salient theme.
I’m really hoping that one of you brilliant people can help me figure out how to re-enable right clicking on the site.
Thank you!!
If you try to load the website with javascript disabled you will realise that the right click works.
It is very common to disable right clicking with a little piece of code that mostly partially useless (you can disabled very easily as you saw) and it only annoys most of the users.
Anyways if you look at your source code you will see this file:
With this JavaScript:
Just remove it from functions.php look for wp_enqueue_script().
#Edit 2:
I also noticed the following:
With a little search about “photocrati”, I would advise you to check to :
I hope any of the above will help you.
Check the table wp_photocrati_gallery_settings column fs_rightclick, is it “ON” or “OFF”?
If “ON”, change it to “OFF”.