CMS Development

Jelmert
Participant

How to use the popup cta code snippet to trigger popup form on button click

Hi,

 

I have created a popup form with the new (beta) popup cta builder in hubspot. Now it says to use a button module from hubspot and pick the cta. This all works great. But the button module from hubspot does not have the styling options I want. 

 

So I want to use another button module or just use the html text link. Now hubspot gives a code snippet for external pages, so I think it is possible. 

 

"Add the following classes to a button on your external website to trigger your CTA."
Code snippet: "hs-cta-trigger-button hs-cta-trigger-button-92185297035"

 

 

But my question is, how do I do this? 😅

 

Would it be something like: <a href="#" class="hs-cta-trigger-button hs-cta-trigger-button-92185297035">click me</a> and then use css to style it the way i want

3 Replies 3
Niharika
Member | Platinum Partner
Member | Platinum Partner

How to use the popup cta code snippet to trigger popup form on button click

Hi @Jelmert 

 

Trust you are doing great.

 

I have checked your above query.

 

It would be great if you can share the screenshot of external snippet that you are saying and URL of page in which you have to add the class of button.

 

Thanks

Niharika Goyal

0 Upvotes
BChaplin
Participant

How to use the popup cta code snippet to trigger popup form on button click

I would like access to this beta please

0 Upvotes
Jelmert
Participant

How to use the popup cta code snippet to trigger popup form on button click

0 Upvotes