Disable text selection in blogger Excluding Blockqoute and Precode
We have great collection of amazing looking video theme, You can download any theme you like for free. By using these themes, your blog is with an extraordinary feel of professionalism and style. Meanwhile continue reading Disable text selection in blogger Excluding Blockqoute and Precode.
Read Also!
Content writing takes every blogger a hard time from research down to posting it in their blog/website. But nowadays many new blogger simply doesn't want to do any research or to even write their own content, what they do is simply copy and paste other bloggers article. Which is of course a no no since copied content can now be penalized and when they try to apply for any monetization platform they will be disapprove especially when they will be applying for Google Adsense.
This is actually the reason why most blogger disable the text selection in their site. Now for this tutorial, you are going to learn How to disable text selection in Blogger excluding Blockqoute and Precode. We exclude Blockqoute and Precode because if your blog is about giving tutorials then it is expected that you will be sharing code and of course your visitors will get irritated if even the code you are sharing cannot be copied.
To begin with the tutorial, simply follow the steps below:
Step #1: Log in to your Blogger Account and Go to your Blogger Dashboard.
Step #2: Click Template --> Edit HTML.
Step #3: Find ]]></b:skin> by Pressing CTRL + F (Windows) or CMD + F (MAC)
Step #4: Now paste the below code above/before ]]></b:skin>
This code will prevent the reader to select any text on your blog post including Blockqoute and Precode.
To allow the readers to copy the code inside your blockqoute and Precode, follow the step below.
Step #5: Paste the below code above/before ]]></b:skin> and Save your template.
Blockqoute:
Precode:
That's it for this tutorial. Happy Blogging!
This is actually the reason why most blogger disable the text selection in their site. Now for this tutorial, you are going to learn How to disable text selection in Blogger excluding Blockqoute and Precode. We exclude Blockqoute and Precode because if your blog is about giving tutorials then it is expected that you will be sharing code and of course your visitors will get irritated if even the code you are sharing cannot be copied.
To begin with the tutorial, simply follow the steps below:
Step #1: Log in to your Blogger Account and Go to your Blogger Dashboard.
Step #2: Click Template --> Edit HTML.
Step #3: Find ]]></b:skin> by Pressing CTRL + F (Windows) or CMD + F (MAC)
Step #4: Now paste the below code above/before ]]></b:skin>
.post-body {
-webkit-user-select : none ;
-khtml-user-select : none ;
-moz-user-select : none ;
-ms-user-select : none ;
user-select : none ;
}
This code will prevent the reader to select any text on your blog post including Blockqoute and Precode.
To allow the readers to copy the code inside your blockqoute and Precode, follow the step below.
Step #5: Paste the below code above/before ]]></b:skin> and Save your template.
Blockqoute:
post-body blockquote {
-webkit-user-select : text ;
-khtml-user-select : text ;
-moz-user-select : text ;
-ms-user-select : text ;
user-select : text ;
}
Precode:
pre {
-webkit-user-select : text ;
-khtml-user-select : text ;
-moz-user-select : text ;
-ms-user-select : text ;
user-select : text ;
}
That's it for this tutorial. Happy Blogging!