Adding javascript to button

Hi, I’m wanting to create a “lightbox” action with a button using java embed code provided by a third-party software provider. The instructions they sent are:

"
First, paste the following

Second, locate the element or elements on the page that should open the Lead Form. For each element, add the class “gather-lead-button” and add the data attribute “data-location-id” with your Location ID as the value (jw8n0zfc).

For example, if you want an existing link on your website to open the Lead Form, it might look like this:
Click here to book a private event

If you have more than one Location using Gather, you can create multiple elements with different “data-location-id” attributes on the same page. Just make sure they all have the class “gather-lead-button”!
"
I believe I have the javascript input correction in the functions.php, but cannot figure out how to activate the button on our home page.

Hi @jcavness1984,

Thank you for writing in, the instruction is to add a class and data attribute to the button right? Please inspect your Button element and under the Customize tab, you’ll see a field for setting class and custom data attributes


If you don’t see these options on your end, please enable the Advance Mode

Hope it helps,
Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.