# Use image to trigger popup

**URL:** <https://community.elfsight.com/t/use-image-to-trigger-popup/102462>\
**Category:** General Questions\
**Tags:** popup\
**Created:** [February 19, 2025, 6:40pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462 "2025-02-19T18:40:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Sutton](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/jim_sutton/32/55775_2.png) [@Jim\_Sutton](https://community.elfsight.com/u/Jim_Sutton)\
**Post date:** [February 19, 2025, 6:40pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/1 "2025-02-19T18:40:54Z")

</div>

Hello from newcomer, Jim. I am trying but cannot find element ID of the element I am trying to use as a trigger. Inspect brings me to info about the element, but no element ID like the example shows. In several tries, I only once saw a “div id” at all, and it was not numeric. So, looking hard but…

---

<div class="post-metadata">

**Author:** ![Jim\_Sutton](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/jim_sutton/32/55775_2.png) [@Jim\_Sutton](https://community.elfsight.com/u/Jim_Sutton)\
**Post date:** [February 19, 2025, 7:00pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/2 "2025-02-19T19:00:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [February 20, 2025, 10:36am UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/3 "2025-02-20T10:36:59Z")

</div>

Hi there, @Jim_Sutton 👋

Could you please send me a link to this page? You’d like to use the image with the “Click Me” button as a trigger, right?

---

<div class="post-metadata">

**Author:** ![Jim\_Sutton](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/jim_sutton/32/55775_2.png) [@Jim\_Sutton](https://community.elfsight.com/u/Jim_Sutton)\
**Post date:** [February 20, 2025, 1:47pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/5 "2025-02-20T13:47:16Z")

</div>

Yes, Max, thank you and hello.

> **[Detroit May Day 2025 and Beyond: Epic Good for All](https://www.cyberpsalm.com/detroit-may-day-2025-epic-for-america/)**
>
> Detroit May Day is a force that makes hope well-founded, even if it is going to be a hard fight. Unions feed that famous Detroit Grit.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [February 20, 2025, 2:33pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/6 "2025-02-20T14:33:58Z")

</div>

Indeed, your image doesn’t have an ID, so you should manually create a custom ID for your image and add it to your website.

Once it’s done, add this ID to the HTML Element ID field in the trigger settings.

Try it out and let me know if it helped 🙂

---

<div class="post-metadata">

**Author:** ![Jim\_Sutton](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/jim_sutton/32/55775_2.png) [@Jim\_Sutton](https://community.elfsight.com/u/Jim_Sutton)\
**Post date:** [February 20, 2025, 2:54pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/7 "2025-02-20T14:54:47Z")

</div>

Thanks, Max! 🙂, though I am at a loss for how to create a custom ID for the image and add to the site. Any pointers? Wondering if this happens often. If I cannot figure out how to add an element ID, maybe switching images is an option. Thanks again

---

<div class="post-metadata">

**Author:** ![Jim\_Sutton](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/jim_sutton/32/55775_2.png) [@Jim\_Sutton](https://community.elfsight.com/u/Jim_Sutton)\
**Post date:** [February 20, 2025, 2:57pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/8 "2025-02-20T14:57:49Z")

</div>

I am finding web articles on such ID creation

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [February 20, 2025, 3:03pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/9 "2025-02-20T15:03:49Z")

</div>

Here is a sample of how it may look: `<picture id="id">`.

You can replace “id” with any id you have in mind. It can be added right here:

![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/optimized/3X/7/1/71dbb012a871d0e01d316c82f2df8e61e88af466_2_690x50.png)

Try it out and let me know if it worked for you 🙂

---

<div class="post-metadata">

**Author:** ![Jim\_Sutton](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/jim_sutton/32/55775_2.png) [@Jim\_Sutton](https://community.elfsight.com/u/Jim_Sutton)\
**Post date:** [February 20, 2025, 3:30pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/10 "2025-02-20T15:30:15Z")

</div>

I am looking for the placement place, in _elements_ within _inspect_, thinking if I find it I can add the string directly there. But unable to locate…

---

<div class="post-metadata">

**Author:** ![Jim\_Sutton](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/jim_sutton/32/55775_2.png) [@Jim\_Sutton](https://community.elfsight.com/u/Jim_Sutton)\
**Post date:** [February 20, 2025, 5:15pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/11 "2025-02-20T17:15:19Z")

</div>

I must be doing something wrong in trying to find the place to insert. When I do an inspect of the image, it always takes me to the image source URL. I search all around for the ‘picture decoding’ or the 'figure class etc., but no. I have expanded all the triangles and ellipses (…) to try and make sure I am seeing all. I am in elements, assuming I have edit if I find it. I tried another image and similar problem.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [February 20, 2025, 6:09pm UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/12 "2025-02-20T18:09:59Z")

</div>

Sorry for the confusion!

I’ve shared a screenshot to help you identify where in the HTML you can add it, but it’s impossible to make changes when inspecting the page.

You should add the ID in the HTML file of your website. Please let me know if this explains things and if it helped 🙂

---

<div class="post-metadata">

**Author:** ![Jim\_Sutton](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/jim_sutton/32/55775_2.png) [@Jim\_Sutton](https://community.elfsight.com/u/Jim_Sutton)\
**Post date:** [February 21, 2025, 3:19am UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/13 "2025-02-21T03:19:34Z")

</div>

Hello, Max. I went to an in-line form in order to get the page published for use. I think the popup is more elegant, and I will want to get it working that way for other applications. I think you have explained it well, thanks, and I will figure out the mechanics of adding the HTML into the website. I am hoping it can be done from the site editor. Much appreciated, Jim

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [February 21, 2025, 10:07am UTC](https://community.elfsight.com/t/use-image-to-trigger-popup/102462/14 "2025-02-21T10:07:11Z")

</div>

Great! If any further questions come, we’ll be happy to advise 🙂
