Button class not triggering

Hello, I am using a class on a button to trigger a lightbox from ThriveThemes. I have a page where the button is being triggered correctly and triggering the lighbox via class .However, it is not working on another page where I am trying to trigger another lightbox. Everything is set up exactly the same but nothing happens when clicked on the button.

thank you so much in advance for your help!

Hello @mangelreynolds,

Thanks for writing in! There is a JS error on the page. It is because you have added an invalid JS code in Pro > Theme Options > JS:

<!-- begin Widget Tracker Code -->
<script>
(function(w,i,d,g,e,t){w["WidgetTrackerObject"]=g;(w[g]=w[g]||function()
{(w[g].q=w[g].q||[]).push(arguments);}),(w[g].ds=1*new Date());(e="script"),
(t=d.createElement(e)),(e=d.getElementsByTagName(e)[0]);t.async=1;t.src=i;
e.parentNode.insertBefore(t,e);})
(window,"https://widgetbe.com/agent",document,"widgetTracker");
window.widgetTracker("create", "WT-SBITROOG");
window.widgetTracker("send", "pageview");
</script>
<!-- end Widget Tracker Code --><!-- begin Widget Tracker Code -->
<script>
(function(w,i,d,g,e,t){w["WidgetTrackerObject"]=g;(w[g]=w[g]||function()
{(w[g].q=w[g].q||[]).push(arguments);}),(w[g].ds=1*new Date());(e="script"),
(t=d.createElement(e)),(e=d.getElementsByTagName(e)[0]);t.async=1;t.src=i;
e.parentNode.insertBefore(t,e);})
(window,"https://widgetbe.com/agent",document,"widgetTracker");
window.widgetTracker("create", "WT-SBITROOG");
window.widgetTracker("send", "pageview");
</script>
<!-- end Widget Tracker Code -->

<script>window.YLOPO_WIDGETS = { domain: ‘search.modernagenthomes.com’, openInNewTab:true};/script
script src=“<//search.modernagenthomes.com/build/js/widgets-1.0.0.js”></script>

To properly insert this JS code, kindly remove this code first and then install “Insert Headers and Footers” plugin. Once installed, go to Settings > Insert Headers and Footers > Footer and that is where you insert your JS code.

Kindly let us know how it goes.

Thank you so much for your help. I did remove the JS you mentioned but it doesn’t seem to fix the problem unfortunately. Thank you so much!

Hi @mangelreynolds,

I was unable to login with the given credentials. I checked both pages and found that the class selling triggers the popup on click. Add the class selling at the Button element on this page.
Please find the page URL in the secure note.


Hope it helps.
Thanks

Thank you so much for your help. To be more specific, the leadbox I am trying to trigger with the button element is using thrive themes. But unfortunately it can only be inserted with a shortcode (ex- [thrive_2step id=‘1310’]Trigger goes here[/thrive_2step]). However, with button element, I’m not how to make it be able to trigger the light box. What would you suggest doing to be able to recall it? Thanks for your help!

Hey @mangelreynolds,

I’m sorry but we don’t know how Thrive Themes work. Our part is only to teach or point you how to add a Class to the Button element. The rest is the responsibility of the Thrive Theme support to teach how their system works.

Anyway, please follow the suggestion of @prakash_s. It looks like it works but if that is not the modal you want, please contact Thrive Themes.

Thanks.

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