In this guide, we will be showing you how to prevent text selection on your blog. Knowing well that disabling this feature only on the desktop view will still give way for text selection and definately copying on mobile devices, we have also though it wise to add a blocking code for this as well.
This article is made special for all bloggers out there who may be feeling reluctant to share some of their know-how, or do no not want ungreatfull people who past their time copying their articles for their own sole benefits.
In this guide, we will be showing you how to prevent text selection on your blog. Knowing well that disabling this feature only on the desktop view will still give way for text selection and definately copying on mobile devices, we have also though it wise to add a blocking code for this as well.
Are you ready to say NO!!! to those who keep copying your articles???, then continue reading this article.
How to go about this;- Step-by-step guide.
- Star by logging in to your blogger acount, then head to the layout of your blog.
- Now under the layout of your blog, click on Add a Gadget.
- In the pop up that opens showing the available gadgets, select HTML/JavaScript.
- Next copy and paste the codes provided below in the box and save.
And now text selection and right-click will be disabled on your blog on the pc view.
See the Pen Blcoking script for text selection/right-click by Western Blot (@western-blot) on CodePen.
- Now if you will want to go further and stop post copying on mobile smartphones like Android, Iphone.., then once in your blog dashboard, goto Theme.
- Under this option, validate on Edit HTML.
- Now in the html editor, click in the editor, and use CTRL+F to search for "]]>
Once that is done, save your template and verify.
Congrats!!!. You have disabled text selection and copying on your blog.
Was this article helpful to your???. If yes then why not leave us a comment!!!.
COMMENTS