Contact popup button

Hello all,

I would like to set the contact popup on a normal button. Could you help for this please ? :slight_smile:

link : https://ecotech-geneve.ch/

Hello there,

Talon Pro script doesn’t have a native feature for that. Sorry :frowning:

However you could accomplish it with this plugin: https://wordpress.org/plugins/modal-popup/

Regards,
Kharis

But it’s already work with this button (see the picture) ? Impossible to do the same with another button ?

I am sorry, I spoke too soon.

In the button widget settings, enter #open-contact-popup for the link button.

11 AM

Then do the below steps:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    ;(function($) {

      $('a[href="#open-contact-popup"]').click(function(event) {
          $('.contact-popup').addClass('contact-active');
          event.stopPropagation();
      		event.preventDefault();
      });

    })(jQuery);
  1. Update

Clear any applied cache as it usually prevents new code addition to take effect. https://codex.wordpress.org/I_Make_Changes_and_Nothing_Happens

Regards,
Kharis

Thank you a lot Kharis :slight_smile:

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis