~ read.

Disable right click action for sites built on squarespace platform

Squarespace is a really cool and nice platform for building fast and wow-effective websites :) Recently my girlfriend decided to update her website and make it look better, so we started to google different options. On the table there were wordpress, squarespace and wix. At first, we decided to try out the Wordpress, but this idea failed eventyally - it was a bit hard and confusing to add new material and find a really nice theme for portfolio website ( freaking a lot of themes and nothing really touching) . So, we looked at wix and squarespace - quick comparison made us to choose squarespace - for the less money we could get more profit. So, after some manipulations experiolation came live . But, since my girlfriend is a photographer, it's important for her to keep her work safe and not let other people to save and reuse her work without a permission. Quick search in google took me to the solution, that works as a charm for us. Here's what is needed to be done :

  • Go to your Admin tool
  • Open your project settings screen -> advanced settings
  • Into "Page Header Code Injection" section paste this code
<script src="http://ajax.googleapis.com/ajax/libs/jquery
/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
$(function () {
$(this).bind("contextmenu", function (e) {
 e.preventDefault();
});
});
</script>

Save it and voila - you can't click with right mouse button anymore :)

Hope it will help you same as for us.

comments powered by Disqus
comments powered by Disqus