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.

SiteGround Black Friday Sale Below Banner

Get Free Blogging Tips & Technology updates in your Email !!!

Subscribe via RSS feed

The following two tabs change content below.
Anil Kumar
IT Blogger Tips focus on Blogging Tips, SEO Tips, Social Media, SQL Tips, PL/SQL Tips, Oracle DBA, Linux/Unix, Latest Technology, How Tos and Technical Solutions. You can find us on Facebook | Twitter |
Find on Google+

  • Emily Tang

    it works! thank you so much for your sharing 😀

  • pankaj_mca2

    can we use this only for specific post/page ?

Siteground SALE
70% OFF SiteGround WordPress Hosting – $2.95/month (Exclusive Offer !!!)