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. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.