How To Disable The Right Click To Download Photos On My Squarespace Website
How to disable right click on Squarespace
Protect yourself confronting image theft
Merely a quick tip for all you Squarespace users out there. Unfortunately Squarespace hasn't baked in the functionality to disable right click in their templates.
The reason why you'd want to disable right click on your website is to make your images harder to steal. (Of course it tin nevertheless exist done - only hopefully this will deter the less adamant).
The code
<script src="http://ajax.googleapis.com/ajax/libs/jquery /1.three.two/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" language="javascript"> $(function () { $(this).bind("contextmenu", function (due east) { e.preventDefault(); }); }); </script>
Source: ArminB (Squarespace forums)
You'll paste the to a higher place code into the Page Header Lawmaking Injection.This section can exist found by clicking the settings button for the sections of your website you want to disable it in and going to the advancedtab.
Delight note that information technology will disable right click for all the pages in that section of your website: i.e. if y'all paste information technology in your blog's page header lawmaking injection, it volition disable right click for your unabridged blog.
I hope this helps!
Come follow me on Instagram @itchban
Featured
Source: https://www.itchban.com/blog/2015/10/11/how-to-disable-right-click-on-squarespace
Posted by: paradisedeace1991.blogspot.com
0 Response to "How To Disable The Right Click To Download Photos On My Squarespace Website"
Post a Comment