How to Disable Text Selection in Blogger and WordPress

Disable Text Selection

Well,

If you want to work for yourself or want to become your own boss then start your career in Blogging using these best blogging tips for newbie bloggers.

Many bloggers started their journey as a part time blogger and now they are full time blogger. Starting blog is really easy these days because there are so many websites who offer free services and when you get good traffic to your website you can start your own .COM or top level domain.

You can also divert all your traffic to your .COM domain easily.

Most of the bloggers use WordPress as their blogging platform whereas for newbie bloggers BlogSpot is the best platform. When your blog gets popularity many content stealers starts copying your content. They simply select your whole article and images and copying them to their own blog.

Is there any way to disable text selection?

You can do it by just following few simple steps:

How to disable text selection in Blogger and WordPress?

Step-1:

Login into your Blogger account.

Step-2:

Now navigate to Layout section >> Add a Gadget

Disable Text Selection

Step-3:

A pop-up window will appear, Choose HTML/Java Script from the pop-up window.

Step-4:

Now paste following script in “Content” section to disable the text selection.

Disable Text Selection

Copy below script in notepad and paste as shown in snapshot.

<script type="text/javascript">

var dsblselect=["input", "textarea", "select"]

dsblselect=dsblselect.join("|")

function disableselect(e){

if (dsblselect.indexOf(e.target.tagName.toLowerCase())==-1)

return false }

function reEnable(){

return true }

if (typeof document.onselectstart!="undefined")

document.onselectstart=new Function ("return false")

else {

document.onmousedown=disableselect

document.onmouseup=reEnable }

</script>

Step-5:

Click on “Save” button and you are done. for LIVE example click on below LIVE DEMO link.

LIVE DEMO

The process is same for WordPress. If you have any problem in implementing this code to WordPress, please write in comment section.

You Must Read:

Get 5 Quality Backlinks from PR-9 Websites in 15 Minutes.

2 thoughts on “How to Disable Text Selection in Blogger and WordPress”

  1. pankaj_mca2

    can we use this only for specific post/page ?

  2. Emily Tang

    it works! thank you so much for your sharing 😀

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Scroll to Top