Disable highlight and copy text - Dawn Theme

Hi,

I would like to disable highlight and copy text so prevent anyone from copying text I have on my website. Can someone help me with this please? I would really appreciate it.

Thank you so much :slightly_smiling_face:

2 Likes

Hi, @midas8858

You can try this code

  1. Go to Online Store-> Theme->Edit code
  2. Asset-> base.css ->paste the below code at the bottom of the file.
body {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        
      }
7 Likes

@Ahsan_ANC This worked perfectly! Thank you so much, I appreciate it! :slightly_smiling_face:

Itโ€™s worked. thank you Ahsan

Can you also provide code to disabled right click to save images and long press to save images on mobile devices?

worked perfectly!! thank you

Hi, Thatโ€™s a good point.!I was thinking about that too. would you do it on the theme setting or you have to do specifically everywhere you want it. Please let me know. thanks. Marielle.

Thank you

Either in theme settings or enable/disable everywhere.

Vivek

Hi, this didnt work for me. Any other suggestions?

after body add this to your base.css for disabling the right click to save images
img {

pointer-events: none;

}

1 Like

Worked. thank you again