Is there a way to create a popup from the CALL TO ACTION BUTTON button?
Essentially i want to run a login popup form from the CALL TO ACTION BUTTON
Thank you.
Is there a way to create a popup from the CALL TO ACTION BUTTON button?
Essentially i want to run a login popup form from the CALL TO ACTION BUTTON
Thank you.
Hello there,
Please refer to this thread: https://wordpress.org/support/topic/sydney-cta-popup/#post-9945441
Regards,
Kharis
Hi @kharisblank,
Thanks for the reply. Would be grateful if you could explain further the following:
1 - ‘In the page editor, edit the respective CTA widget’ … I’m unable to get to the CTA widget? Can you explain how I get to add a custom class name to the Widget. The widget in question is the following CTA Member Login on the gdmplus.com website.
2 - Simple Popup and TC Custom JavaScript plugins have been added and JavaScript has been added.
Thank you.
Hello there,
1
To avoid confusion, let me ask you one thing. Do you use Elementor or SiteOrigin’s page builder?
Regards,
Kharis
Hi … I have Elementor page builder.
Hello there,
You can use the Button ID option in the settings panel of Elementor button.
Based on the ID name given as seen on the screenshot above, you could use this code:
(function($){
if( $('#my-button-id').length ) {
$('#my-button-id').attr('onclick', 'return popitup(this.href, 600, 600)');
}
})(jQuery);
Regards,
Kharis
Yes I understand how to do that but it was the CALL TO ACTION in the parallax slider button that I was wanting to add a popup to. Its in the ‘Customizing -->> Header area -->> Header Slider’ section:
i cant set any properties on that button? I want a popup on that button…
Hello there,
Main slider’s button has a unique class name. You can use this code:
(function($){
if( $('.header-slider .button-slider').length ) {
$('.header-slider .button-slider').attr('onclick', 'return popitup(this.href, 600, 600)');
}
})(jQuery);