Lightbox Indicator

Look Demo

Let visitors know it’s a lightbox with a cool corner icon. This plugin uses css editor, code injection, and works with all template families.

How To Install

From your Squarespace account, go to Site Code Injection. Copy and paste the code below into the Header Code Injection box. Save the changes when done.

<script src=""></script> <script>$(document).ready(function(){$(".sqs-block .lightbox").each(function(){$(this).prepend("<lbb></lbb>")}),$(".sqs-block-gallery a").each(function(){("light"==$(this).data("lightbox-theme")||"dark"==$(this).data("lightbox-theme"))&&$(this).prepend("<lbb></lbb>")}),$(".sqs-block-gallery lbb").click(function(){$(this).siblings().click()})});</script>

Next, go to the Custom CSS Editor. Copy and paste the code below into the Custom CSS Editor box.

Save and refresh the page when finished.

// Lightbox Indicator //

.sqs-block .lightbox, .sqs-block-gallery a[data-lightbox-theme="light"] img,  .sqs-block-gallery a[data-lightbox-theme="dark"] img{
  pointer-events: none;
  position: absolute;
  background-image: url(;
  background-size: 30px;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1px;
  width: 30px;
  height: 30px;
  content: ' ';
  display: block;
  top: 10px;
  right: 10px;
  z-index: 9999;
  cursor: pointer;
  pointer-events: auto;

This plugin works for both images and gallery blocks.

You must have the lightbox setting enabled for the images and galleries that you’d like to target. This setting can be found directly in the image or gallery block design settings.


You do not need to change any of the values or properties.


No notes.