Atkinsg88 Posted December 5, 2020 Share Posted December 5, 2020 Site URL: http://www.garyatkinsphotography.co.uk Hi, How do you remove the right click option so people cannot save my images? Thanks Link to comment
IXStudio Posted December 5, 2020 Share Posted December 5, 2020 Hi, Insert this code in your Footer Code Injection. <script> document.addEventListener('contextmenu', event => event.preventDefault()); </script> Please use the like button if it helps you! Best, Leopold Ninja Kit Extension: Upgrade your Squarespace website without coding.YouTube Preview - FREE DOWNLOAD Link to comment
Atkinsg88 Posted December 6, 2020 Author Share Posted December 6, 2020 Thanks Leopold - I am now getting this in the header of my portfolio page. script type="text/javascript"> $(document).ready(function () { //Disable full page $("body").on("contextmenu",function(e){ return false; }); //Disable part of page $("#id").on("contextmenu",function(e){ return false; }); }); Link to comment
tuanphan Posted December 8, 2020 Share Posted December 8, 2020 Remove black code. No need to use it. IXStudio 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment