# How to make an image in object information pop-up a link

**URL:** <https://community.elfsight.com/t/how-to-make-an-image-in-object-information-pop-up-a-link/10659>\
**Category:** Customization\
**Tags:** google-maps\
**Created:** [January 4, 2023, 1:18pm UTC](https://community.elfsight.com/t/how-to-make-an-image-in-object-information-pop-up-a-link/10659 "2023-01-04T13:18:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ImperoHouse](https://avatars.discourse-cdn.com/v4/letter/i/ecc23a/32.png) [@ImperoHouse](https://community.elfsight.com/u/ImperoHouse)\
**Post date:** [January 4, 2023, 1:18pm UTC](https://community.elfsight.com/t/how-to-make-an-image-in-object-information-pop-up-a-link/10659/1 "2023-01-04T13:18:59Z")

</div>

- **Issue description:** is it possible to add a link to an image in object information pop-up of Google Maps plugin? So the guest intuitively clicks the image instead of looking for a clickable link below.

- **Link to the page with the widget in question:** [Copy of Search](https://imperohouse.com/test)

 ![Без названия](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/2X/3/3239eb6749deec39c802cb53c61475762d9bb502.jpeg)

---

<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:** [January 9, 2023, 2:27pm UTC](https://community.elfsight.com/t/how-to-make-an-image-in-object-information-pop-up-a-link/10659/3 "2023-01-09T14:27:23Z")

</div>

Hello @ImperoHouse and welcome to Elfsight Community 🚀 ❤

I’ve forwarded your request to our devs and, hopefully, they’ll come up with a proper solution really soon. Please do not worry, I’ll keep you updated 😉

---

<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:** [January 10, 2023, 7:28am UTC](https://community.elfsight.com/t/how-to-make-an-image-in-object-information-pop-up-a-link/10659/6 "2023-01-10T07:28:19Z")

</div>

Hello @ImperoHouse!

Thank you for waiting!

Our devs have found a proper solution for your use-case. You just need to add the code below right after the widget installation code:

```auto
<script>
  document.addEventListener('click', (e) => {
      const markerImage = e.target.closest('.eapps-google-maps-marker-image');
      if (markerImage) {
        const markerPopup = markerImage.closest('.eapps-google-maps-marker');
        const markerInfoLink = markerPopup.querySelector('.eapps-google-maps-marker-info-item-text > a')?.href;
        if (markerInfoLink) {
          window.open(markerInfoLink, '_blank');
        }
      }
  });
</script>
<style>
  .eapps-google-maps-marker-image img {
    cursor: pointer;
  }
</style>

```

Could you please check it and let me know if it helped?
