Jump to content

Trying to get Supply Gallery Images to open in Lightbox when clicked.

Recommended Posts

Posted

Hello,

I am trying to get my gallery images to open in Lightbox when clicked. I am using the Supply template because I like the layout. I have injected the following code into the header: 

<link href="path/to/lightbox.css" rel="stylesheet" />

and the following code into the footer:

<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha384-/T00a+Nl02aba/xlKg6U7YYn7bGRaW9olG/hL3M/N9eOrPp1qvcYz2g+sKokVhj" crossorigin="anonymous"></script>

<script src="path/to/dist/js/lightbox-plus-jquery.js"></script>

 

Could anyone help me please? The website is http://hemal.io/ and the password is "bluegreen".

Thank you!

  • Replies 2
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Have you added 2 files to Squarespace yet?

image.thumb.png.a72dc8f36f88085791f6e8ad4f3e0246.png

If you haven't upload these files, follow this guide to upload it

https://support.squarespace.com/hc/en-us/articles/205813928-Uploading-and-managing-files

The uploaded file will also have a different URL structure than the URL you use.

suppose your file is lightbox.css and lightbox-plus-jquery.js

after upload, it will have href/src is

href="/s/lightbox.css"

and

src="/s/lightbox-plus-jquery.js"

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.