Disable Select & Copy Function In Your Store
Print
Modified on: Thu, 10 Sep, 2020 at 10:51 AM
Admin Panel> Themes > Edit source
2. layout > layout/theme.liquid
3. Scroll to the last row, paste code below before </body>
<script type="text/javascript">
$(document).ready(function () {
$("body").css({
"-webkit-touch-callout": "none",
"-webkit-user-select": "none",
"-khtml-user-select": "none",
"-moz-user-select": "none",
"-ms-user-select": "none",
"user-select": "none"
});
//Disable cut copy paste
$('body').bind('cut copy paste', function (e) {
e.preventDefault();
});
//Disable mouse right click
$("body").on("contextmenu",function(e){
return false;
});
});
</script>
4. Save
Did you find it helpful?
Yes
No
Send feedback Sorry we couldn't be helpful. Help us improve this article with your feedback.