Sentry Page Protection

FROM MY SQUARESPACE TO YOURS

Bringing you the best that I can of what I have learned to enhance your site and utilize all Squarespace has to offer.


Peak-A-Boo FAQ's

If you visit my Policies and FAQ's pages (you should!) you will see that I utilize a code that allows you to show and hide content.

Expand Here for Details

click here for the code details


No Stealing aka No Right Clicks

Let's face it -- stealing sucks. This type of code is great for protecting images, especially if you have a portfolio on your site.

This code is implemented in two phases.  Follow the location path, then copy and paste the the values as shown.

LOCATION 1: Settings -> Advanced -> Code Injection

place in the box titled "Header"

<script type="text/javascript">
      function nocontext(e) {
        var clickedTag = (e==null) ? event.srcElement.tagName : e.target.tagName;
        if (clickedTag == "IMG")
          return false;
      }
      document.oncontextmenu = nocontext;
    </script>

LOCATION 2: Design -> Custom CSS

img {
      -moz-user-select: none;
      -webkit-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-user-drag: none;
      user-drag: none;
      -webkit-touch-callout: none;
    }

Simplified Newsletter Sign-up

The standard newsletter sign up block...is a little bulky is it not?  The extra padding and background can make it take up more space than what tends to be aesthetically pleasing.

Caution: For this new Newsletter Block -- it does not require a name filed, and does not have a space for a disclaimer. Adding text to the disclaimer field will throw off the code.  Your new newsletter block will look like this (ps feel free to sign up!):

The code is a little lengthy, click here for the content.