# Coding Hyperlink in image slider

**URL:** <https://community.hubspot.com/t/coding-hyperlink-in-image-slider/78618>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [April 3, 2023, 6:53pm UTC](https://community.hubspot.com/t/coding-hyperlink-in-image-slider/78618 "2023-04-03T18:53:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MFawns](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@MFawns](https://community.hubspot.com/u/MFawns)\
**Post date:** [April 3, 2023, 6:53pm UTC](https://community.hubspot.com/t/coding-hyperlink-in-image-slider/78618/1 "2023-04-03T18:53:52Z")

</div>

Is there a way to code a hyperlink to text in an image slider module that has no rich text option?

---

<div class="post-metadata">

**Author:** ![TDwebdev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tdwebdev/32/78032_2.png) [@TDwebdev](https://community.hubspot.com/u/TDwebdev)\
**Post date:** [April 4, 2023, 12:51pm UTC](https://community.hubspot.com/t/coding-hyperlink-in-image-slider/78618/2 "2023-04-04T12:51:25Z")

</div>

@MFawns can you give us more information, link or screenshot?

---

<div class="post-metadata">

**Author:** ![ankitparmar09](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ankitparmar09/32/64399_2.png) [@ankitparmar09](https://community.hubspot.com/u/ankitparmar09)\
**Post date:** [April 6, 2023, 3:50pm UTC](https://community.hubspot.com/t/coding-hyperlink-in-image-slider/78618/3 "2023-04-06T15:50:57Z")

</div>

Hello @MFawns

Thanks for reaching out. Good question, but

My question is

**1) Create a custom module?**

**Ans:** If yes. Use the link field.

`{% set href = module.link_field.url.href %}{% if module.link_field.url.type is equalto "EMAIL_ADDRESS" %}{% set href = "mailto:" + href %}{% endif %}<a href="{{ href }}"{% if module.link_field.open_in_new_tab %}target="_blank"{% endif %}{% if module.link_field.rel %}rel="{{ module.link_field.rel }}"{% endif %}><!-- Image code here --></a>`
