BPOVIA Website Design

Icon

Provides High-quality Web Design And Maintenance Service In The World

Add Copyright Notice on WordPress Copied Text

Add code blow into your header.php

<script type="text/javascript">
function addLink() {
    var body_element = document.getElementsByTagName('body')[0];
    var selection;
    selection = window.getSelection();
    var pagelink = " Add your Copyright text here!";
    var copytext = selection + pagelink;
    var newdiv = document.createElement('div');
    newdiv.style.position='absolute';
    newdiv.style.left='-99999px';
    body_element.appendChild(newdiv);
    newdiv.innerHTML = copytext;
    selection.selectAllChildren(newdiv);
    window.setTimeout(function() {
        body_element.removeChild(newdiv);
    },0);
}
document.oncopy = addLink;
</script>

From now on everyone that try to copy your content and paste the content on text editor new copyright notices will be follow

BPOVIA All Rights Reserved
Maintained by BPOVIA Web Design Team

Category: website, WordPress

Tagged: ,

Comments are closed.