I would like to disable right click and F12 on my website

I don’t know coding, but I got a code that when updated in the header.php file will achieve the above.

I did not find a header file in the child theme folder.I am currently using the ethos child theme.

But i did find a header.php file in the X theme folder[public_html/wp-content/themes/x].

If I update the header.php file in the X theme folder, would this code get undone when the X theme gets updated next?

Is there another way of achieving this?

Hi @Keez_80,

Thanks for writing in.

First setup child theme:

Next, know how to create file for in child theme.

and lastly, the location of the header can be found here:

pro\framework\legacy\cranium\headers\views\global

Or Use Insert Headers and Footers plugin to add your code (https://wordpress.org/plugins/insert-headers-and-footers/1).

Hope it helps.

Let us know how it goes.

Thanks.

Hello Nioco,

Am using X theme, not Pro.

I already have child theme installed.

I only need to know where in the child theme can I find the header.php file.

My goal is to disable F12 and Right click on the website.

""

I will give the plugin a shot

Let us know how it goes.

The plugin was good thanks Jade!

Glad we could help.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.