Tutorial : 3 steps How to disable select/click on blog


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'>
if (typeof document.onselectstart!=&quot;undefined&quot;) {
document.onselectstart=new Function (&quot;return false&quot;);
}
else{
document.onmousedown=new Function (&quot;return false&quot;);
document.onmouseup=new Function (&quot;return true&quot;);
}
</script>
4. Done

----------  --------- --------  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

ariexxn