Why can’t I copy text from my WordPress site?

Why can’t I copy text from my WordPress site?

That’s because you’ve disabled text selection with the following CSS code all over the place on your website:

html, body {
    user-select: none;
 }

Due to the LiteSpeed Cache plugin’s CSS optimization, I can’t trace the source of this CSS code. But this LiteSpeed cach file 7dd86775019f5c76c28ceced46748268.css alone has over 50 instances of this CSS user-select: none;

It’s better you trace the source of this CSS and remove it. But if you’re looking for a quick fix add the following custom CSS:

body {
    user-select: auto !important;
}

The reason is a CSS property that is attached to the html and body element:

user-select: none;

Since you have activated Litespeed as an optimization plugin, I unfortunately do not see where this information comes from. Since you have already excluded plugins, I suspect the theme as the cause.

If you can’t find the reason in the theme, this would be a way to override it:

html, body { user-select: auto !important }

Thanks for your response.

I’ve disabled the LiteSpeed plugin. Could you please check it again?

Hey, it’s working now. Thanks, @gappiah @threadi

I added this, and it’s working.

body {
user-select: auto !important;
}

Thank you so much.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer