# (Squarespace) Click Image - Open Gallery Section Popup

**URL:** <https://community.elfsight.com/t/squarespace-click-image-open-gallery-section-popup/104159>\
**Category:** Platform Tips\
**Tags:** squarespace\
**Created:** [February 28, 2025, 6:43am UTC](https://community.elfsight.com/t/squarespace-click-image-open-gallery-section-popup/104159 "2025-02-28T06:43:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuanphan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/tuanphan/32/3165_2.png) [@tuanphan](https://community.elfsight.com/u/tuanphan)\
**Post date:** [February 28, 2025, 6:43am UTC](https://community.elfsight.com/t/squarespace-click-image-open-gallery-section-popup/104159/1 "2025-02-28T06:43:56Z")

</div>

To make Gallery Section Popup appear when users click an Image, you can follow these.

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/8/b/8bc2d9c44d50daa26c6d23b0ad1ff8fa5a3beb31.jpeg)

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/e/0/e0e25066530bef0cdf2c7cfd9a7dfe9bfa98fa86.png)

**#2**. Edit Content Lightbox page \> Add 3 Gallery Sections \> Then find ID of 3 Gallery Sections

In my example, we will have:

- Gallery section 1: section[data-section-id=”67b856a668f8f46f9fae079a”]
- Gallery section 2: section[data-section-id=”67b856b26168aa19701f6e28″]
- Gallery section 3: section[data-section-id=”67b856b98c2039685c917bae”]

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/1/6/16dae81c26bd7dcdf92bcc6dd160a782488482ae.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/2/0/201e2ded57c5733e1e7e22394dcce728e7727b8b.jpeg)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/b/b/bb4c7e20a70e6a2c1fdd245690aa99bcea43dc14.jpeg)

**#3.** Edit Images where you want to make Gallery Section Popup appear \> Edit 3 Images \> Add URL \> Use this URL format.

Make sure “Open in New Tab” is disabled

Image 1: #wm-popup=/content-lightbox[data-section-id=‘67b856a668f8f46f9fae079a’]

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/c/7/c77c91abdb9e649ef4a2b13bc57b288f2c3c763e.png)

Image 2: #wm-popup=/content-lightbox[data-section-id=‘67b856b26168aa19701f6e28’]

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/1/d/1da67110aa992fae77051793258d0735c1bde6f5.png)

Image 3: #wm-popup=/content-lightbox[data-section-id=‘67b856b98c2039685c917bae’]

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/1/8/186a1bd6366a01e1aaaf40abbb7c4fb9aae6abac.png)

**#4.** Install [Popup Plugin](https://www.will-myers.com/products/p/modal-popups-in-squarespace?peachs_apc=tuan-phan)

Plugin will give you some code to Code Injection \> Header

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/c/4/c4eb53a8e99f03f2e7cef681e5081f2803896772.png)

and Footer

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/0/8/080405e93617d5f67dc81756cbc03a567a22e60b.png)

**#5.** Result

When users click Image 1 \>\> Gallery Section Popup 1 will appear

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/f/7/f724e0530e34a9edf76f5d1092fde8953c6cc561.jpeg)

When users click Image 2 \>\> Gallery Section Popup 2 will appear

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/e/2/e2c2529c67e8626c3309a36eda2f2ca4ab83ce7f.jpeg)

When users click Image 3 \>\> Gallery Section Popup 3 will appear

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/a/7/a799d50783b808e1ff3e4b3f3dac9784ad510163.png)

---

<div class="post-metadata">

**Author:** ![romano97002](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/romano97002/32/95751_2.png) [@romano97002](https://community.elfsight.com/u/romano97002)\
**Post date:** [February 28, 2025, 4:29pm UTC](https://community.elfsight.com/t/squarespace-click-image-open-gallery-section-popup/104159/2 "2025-02-28T16:29:10Z")

</div>

@tuanphan,

❤ ❤ ❤
