Shopify themes, liquid, logos, and UX
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 🙂
Solved! Go to the solution
This is an accepted solution.
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;
}
This is an accepted solution.
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;
}
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?
after body add this to your base.css for disabling the right click to save images
img {
pointer-events: none;
}
Worked. thank you again
worked perfectly!! thank you
Hi, this didnt work for me. Any other suggestions?
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.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025