Disable Select & Copy Function In Your Store

  1. 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.