Skip to content

Tag: wordpress

Disable Right Click on WordPress Site

I wanted to disable right click on my wordpress site. I have written a small snippet and inserted into body which disables right click, CTRL events and keyups. but it is annoying when I want to copy something on site. is there a way I can modify the current snippet like only logged in users would be able to a…

is_page() function not displaying content to specific page ID’s

Im trying to simply just output some HTML onto these 3 specific page-ids that I am referring too in the code below. Does anyone have any ideas as to why this php isn’t working? (its at the bottom of my functions.php file in the child theme. Any help would be appreciated as to why this ‘test conten…