How to Disable Right Click on Squarespace 7.1 Websites

Disabling right click can prevent people from downloading pictures and stealing content from your website overall. We will be using Javascript to disable right click on your Squarespace 7.1 website.

Follow the step-by-step instructions below with screenshots.


How to Disable Right Click on Squarespace with JavaScript

Step one

Click “Home” and then “Settings"

Step Two

Click “Advanced”

Step Three

Click “Code Injection”

Step Four

Copy and past this code into the “Header” section:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>

$(document).ready(function () {

$("body").on("contextmenu",function(e){

return false;

});

});

</script>

 

Did you find this article helpful? Share it with your friends by clicking one of these buttons:


Elizabeth

Design Agency Owner | Web Designer | Squarespace Expert |

Website | LinkedIn | Instagram

https://www.woodmediallc.com
Previous
Previous

Our Designs in a Day Process

Next
Next

Brand & Wordpress Web Design for a Life Coach