Here I am sharing you a code snippet which you can use to protect your specific page to be copied. This Code will disable Right Click, CTRL+C and CTRL+V etc. I got this code from StackOverflow.com and modified it a little so that you can use it for your WordPress Page.
Just change the Page ID in the code with your own page ID which you want to be protected.
<?php
if(is_page('YOUR PAGE ID')){?>
<script>
jQuery(document).ready(function() {
jQuery(function() {
jQuery(this).bind("contextmenu", function(e) {
e.preventDefault();
});
});
});
// Disable Right click
document.addEventListener('contextmenu', event => event.preventDefault());
// Disable key down
document.onkeydown = disableSelectCopy;
// Disable mouse down
document.onmousedown = dMDown;
// Disable click
document.onclick = dOClick;
function dMDown(e) { return false; }
function dOClick() { return true; }
function disableSelectCopy(e) {
// current pressed key
var pressedKey = String.fromCharCode(e.keyCode).toLowerCase();
if ((e.ctrlKey && (pressedKey == "c" || pressedKey == "x" || pressedKey == "v" || pressedKey == "a" || pressedKey == "u")) || e.keyCode == 123) {
return false;
}
}
</script>
<?php } ?>
Basically I got the code from Codepan. But I am describing it here again with my html and css for the novice users. I am sharing the CSS, HTML and Javascript related to it.
Multi Blog by ThemeinWp is a responsive WordPress theme which you can use for personal, travel, fashion, food, photography, publishing, tutorial blogs, or any other site. If you are a creative blogger,then you can use this theme. Here I am sharing you some css tips which you can use to modify the header, footer, sidebar, font color, font family and more using css. You can download MultiBlog by Themeinwp, Or you can see the demo of Multi Blog theme. If you have any question regarding css helps, feel free to ask question in comments section
This post is for those who has knowledge about HTML and jQuery. I am sharing the code directly here, If you have any question or facing similar issue, feel free to ask question in comments section
<script>
jQuery(document).ready(function(){
var params = new window.URLSearchParams(window.location.search);
console.log(params.get('assigned_to'));
var coach=params.get('assigned_to');
if (coach.toLowerCase().indexOf("terry") >= 0){
var terryNumber='(832)xxx-xxxx';
jQuery("div#call a").text(terryNumber);
jQuery("div#call a").attr("href", "tel:"+terryNumber);
}
else if(coach.toLowerCase().indexOf("paul") >= 0){
var jimNumber='(760)xxxx-xxxx';
jQuery("div#call a").text(jimNumber);
jQuery("div#call a").attr("href", "tel:"+jimNumber);
}
else if(coach.toLowerCase().indexOf("newname") >= 0){
var newnameNumber='(760)xxx-xxxx';
jQuery("div#call a").text(newnameNumber);
jQuery("div#call a").attr("href", "tel:"+newnameNumber);
}
});
</script>
As I have enthusiasm in astrology, but I don’t do it professionally, so I need your help to match what I observed regarding 8th lord in 5th house or A8 pada in 5th house. Please feel free to write and share your findings in comments section.
8th lord in 5th house native may face issue regarding child abortion or death
Native may involve in affair to his/her student
Native may get interest in Occult science
These 3 are my observation. So, if you have this combination please share your thoughts too.
Here I am sharing you 2 technique using css. Please Feel Free to do comments if you have any question regarding Twenty Twenty Two theme of wordpress by Automattic.
1 ) To change font size, color and font family and spacing of H1 header tag for Page titles