
In the world of the internet, so many people copy text from one blog to another. So in this tutorial, I will show how you can add automatic credit like/Source Links, so let me tell you something about this.
What is the automatic credit link?
When anyone copies any text from your blog the automatic credit adds your post link under the copied text. If you still not understand then you can see the demo from the below demo button.
DEMONow copy any text from the demo and paste anywhere and see the magic, you will see on the last of the copied text the post URL and credit.
How to add this on Blogger
So let's talk about how you can add this auto credit link on blogger, just open your Blogger dashboard then go to theme HTML edit and search for </body> tag and add the below code after this </body> tag.
<script type='text/javascript'>
//<![CDATA[
// Copy Text
function nocopas(){var e=window.getSelection();pagelink=" Read more : "+document.location.href,copytext=e+pagelink,newdiv=document.createElement("div"),newdiv.style.position="absolute",newdiv.style.left="-99999px",document.body.appendChild(newdiv),newdiv.innerHTML=copytext,e.selectAllChildren(newdiv),window.setTimeout(function(){document.body.removeChild(newdiv)},100)}document.addEventListener("copy",nocopas);
//]]>
</script>
After adding this code after </body> tag then just save your theme.
comment 0 Comments
more_vert