How to Set Up the Lightbox Anything Plugin on Your Squarespace 7.1 Website
Want to create pop-up lightboxes on your Squarespace website? Follow this quick guide to set up the Lightbox Anything plugin in just a few steps.
Step 1: Upload the JavaScript and CSS Files
Go to Pages in your Squarespace dashboard.
Click on the plus (+) icon to add a new link.
Scroll down and select Link, then click on File.
Click the plus (+) arrow to upload files.
Navigate to your plugin folder and upload both the JavaScript and CSS files.
Once uploaded, click Close to finish.
Tip: These files are now stored on your site, ready to be used in your lightbox setup.
Step 2: Copy the Plugin Code
Go back to the Lightbox instructions that came with the plugin.
Copy the provided code that enables the lightbox functionality.
Step 3: Insert the Code in Squarespace
In Squarespace, go to Utilities > Website Tools.
Click on Code Injection.
Scroll down to the Footer section and paste the code you just copied.
Click Save to apply the code to your site.
Step 4: Set Up the Lightbox URL Structure
Now, go to the page you want to open in a lightbox. In this example, we’re using a page called Services.
Use the URL structure: #lightbox_pageURL. Replace
pageURL
with the slug of your page. In our case, it’s#lightbox_services
.
Step 5: Test the Lightbox
Refresh your page to apply the changes.
Click the button with the lightbox URL, and your selected page (e.g., Services) should open in a pop-up lightbox!