To disable people select your post / copy your post.
1. Theme > Edit HTML > Click All black >
2. ctrl + f , find the word </head>
3. Copy this code under it.
<script type='text/javascript'>4. Done
if (typeof document.onselectstart!="undefined") {
document.onselectstart=new Function ("return false");
}
else{
document.onmousedown=new Function ("return false");
document.onmouseup=new Function ("return true");
}
</script>
---------- --------- -------- WAY 2
1. Dashboard > blog's template > Customize > Advanced > Add CSS
2. Now copy this code and paste in ' Add custom CSS' box.
.article-content { -webkit-user-select: none; -webkit-touch-callout: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
3. Now click on the ‘Apply to Blog’ button, which is given on the upper right side of your screen. It will inject the required code in the Blogger HTML template.
4. Now click ‘View Blog’ link to check Text Selection is disabled on Not.
------- -------- ----- WAY 3
1. Dashboard › blog’s Settings › Posts and comments › Post Template › Click on ‘Add.’
2. Now paste the following code Post template Box
<style> .article-content { -webkit-user-select: none; -webkit-touch-callout: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } </style>
3. Now click on the ‘Save Settings’ button, which is given on the upper right side.
4. When you will write a post, every time this code will automatically come into a post.
5. Do not delete it and keep it at the bottom of your blog post.
CR. to credit
No comments :
Post a Comment
Assalamualaikum and hi ,mind to drop your comment or opinion here .:D