Friday, January 31, 2014

Disable content selection of your whole blog except blockquote.

By Sonu Kumar Gupta   Posted at  3:01 AM   blogger No comments

 


    This one will be very helpful for those bloggers including me who writes about codes and all on their blog which must to copied by their visitors. But what actually happens is instead of copying only the code which we share, some copy bloggers copies the whole content and re shares on their blog without even giving us any credit which must be stopped and this post will help you from getting your content copied.
    This post is about disabling selection of your whole blog except blockquote so that only the codes which you share using the blockquote tag can be copied. So, make sure you use the blockquote tag on those texts or codes which you want to be copied.
    Let's start the tutorial-
    First of all let us disable selection on our whole blog. For doing so-
    • Go to Blogger- Template- Edit HTML.
    • Then search for body which you will find after the variable destinations on your template. 
    • After you have found "body", simple copy and paste the below code inside the {second brackets}

    -webkit-user-select: none;
      -moz-user-select: none;    
      -ms-user-select: none;     
      -o-user-select: none;
      user-select: none; 


    The above method will disable selection on your whole blog. Now let's enable selection on our blockquotes.

    • On again search for the below code on your template.

    .post-body blockquote
    • After you have found the code, paste the below code inside the {second brackets}.

     -moz-user-select: text; -ms-user-select: text; -o-user-select: text; -webkit-user-select: text; user-select: text;
    • After doing the above steps, save your template.
    • All done. Now your blog has been protected from those copy bloggers.
    What we did in here is disabled selection of our whole blog first, then we have added an exception on the blockquotes. In that way, our visitors will be only able to copy what we share using the blockquote tag. And one more thing is that I personally use this method on my blog and I don't get any problem with it.

    Share this article with your friends.

    About the Author

    SONU is a young addicted Blogger who is founder of the site. He is 18 years old and living in Bihar,India. Currently, He is Preparing for JEE and running his site. He loves to share his Blogger resources, Latest software development and helping newbies in the Blogging world..

    0 comments:

    Comment Policy : We do receive a lot of comments each day and those comments are moderated by the human being not automated robots. So, Please avoid doing spam and posting links in comments otherwise comment will not be published. We can't tolerate anymore. Thanks for understanding!

    Back to top ↑

    Connect with Us

    © 2014 . Sonukumar Converted by Sonukumar