Welcome to Othero Tech

OtheroTech : A New Blog Where You Can Find Blogging Tutorials, Tips, Tricks, Online Tools, Templates and Many More...

  See All Posts

How to Disable Text Selection in Website

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

Writers of content for WordPress and Blogger websites create their own content in order to monetize it.

Scammers visit your website, pick out all the text content, and then copy it to their own website.

There may be instances when your designs dictate that a portion of your website be inaccessible unless specific requirements are fulfilled. You may want to disable text selection because you're furious that your contents are being stolen by someone using a simple copy and paste.

In any case, it shouldn't be difficult to disable text selection. Javascript and JQuery can be used in conjunction with basic CSS for the approach. This tutorial will cover how to use JavaScript, CSS, and HTML to disable text selection using the user-select property and other pertinent options.

How to Disable Text Selection in Website?

  1. Copy below the code.
  2. Go your website Dashboard.
  3. Paste the CSS code your main css file section.
* {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

Warning!
Before we start adding codes in XML, I will recommend you to take a Backup of your current theme. By chance if any problem occurs, you can restore it later

Conclusion

This post describes How To Disable Text Selection On Websites. Hope it was enjoyable for you. In order to learn more, kindly follow our blog and share it with your friends.

Getting Info...

About the Author

Hi there, this is Shouvik. I am a Bachelors in computer by qualification who loves to write about blogs, Helpful Tips, Tools, Premium Themes and all it's related topics. I'm the one that writes, publishes, and maintains all the articles you …

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.