# How to use the Button trigger code snippet as a 'external url'

**URL:** <https://community.hubspot.com/t/how-to-use-the-button-trigger-code-snippet-as-a-external-url/69658>\
**Category:** Lead Capture Tools\
**Tags:** ctas\
**Created:** [November 21, 2022, 1:17pm UTC](https://community.hubspot.com/t/how-to-use-the-button-trigger-code-snippet-as-a-external-url/69658 "2022-11-21T13:17:01Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![KRichter5](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@KRichter5](https://community.hubspot.com/u/KRichter5)\
**Post date:** [September 6, 2023, 6:08pm UTC](https://community.hubspot.com/t/how-to-use-the-button-trigger-code-snippet-as-a-external-url/69658/8 "2023-09-06T18:08:45Z")

</div>

I have a WordPress site (external site) with a pre-existing button that currently links to nothing. I’ve created a pop up CTA that I would like to apply to this button; however, I’m not sure how to apply the snippet HubSpot provided for external URLS.

Does anyone know how to do this?

---

_[View the full topic](https://community.hubspot.com/t/how-to-use-the-button-trigger-code-snippet-as-a-external-url/69658)._
