(Squarespace) Click text in paragraph open Image popup

To make Image Popup appears when users click text in a paragraph, you can follow these.

#1. First, create a Page in Not Linked.

With Name/URL: Content Lightbox – /content-lightbox

#2 . Edit Content Lightbox page > Add 3 Image Blocks > Then find ID of 3 Image Blocks.

In my example, we will have:

  • Image 1: #block-yui_3_17_2_1_1740131360910_4354
  • Image 2: #block-d770252a558f23d6583b
  • Image 3: #block-03cbbfbdd026bae9a2c4

#3 . Edit Paragraph where you want to make Image Popup appear > Edit 3 Texts > Add URL > Use this URL format.

Text 1: #wm-popup=/content-lightbox#block-yui_3_17_2_1_1740131360910_4354
Make sure “Open in New Tab” is disabled

Text 2: #wm-popup=/content-lightbox#block-d770252a558f23d6583b
Make sure “Open in New Tab” is disabled

Text 3: #wm-popup=/content-lightbox#block-03cbbfbdd026bae9a2c4
Make sure “Open in New Tab” is disabled

#4. Install Popup Plugin

Plugin will give you some code to Code Injection > Header

and Footer

#5. Result

When users click text 1 >> Image Popup 1 will appear

When users click text 2 >> Image Popup 2 will appear

When users click text 3 >> Image Popup 3 will appear

1 Like