Hello Enfold Team!
Would you please help me? I try to give the submit button from Mailchimp Signup a class. But how could i to that, because the Button is created from Mailchimp Element? In private content you see the code with questions.
Thanks for you answer!
Regards
Hey topnetat,
Thank you for the inquiry.
Have you tried adding a class name to the actual form element or the parent container instead of directly adding it to the button? Please provide a link to the actual page so that we can inspect it further.
Best regards,
Ismael
Hey Ismael!
Thanks for you answer – yes we just try it – but is there any possibility to directly set the css class to the button? We really want to track this event better. You can see the Link in private content.
Kind regards
Hi,
You don’t really need to apply the class name to the actual button as long as you’re using the proper selector. It’s possible, but you may have to create a custom jQuery script and use the addClass function.
// https://www.w3schools.com/jquery/jquery_css_classes.asp
You can also edit the button markup directly in the wp-content\themes\enfold\framework\php\class-form-generator.php file > button function, around line 465:
$this->button_html .= '<input type="submit" value="' . $submit_label . '" class="button" ' . $this->submit_attr . ' data-sending-label="' . __( 'Sending', 'avia_framework' ) . '"/>';
Best regards,
Ismael
Hi Ismael!
Thanks for you help – not its working fine!
Regards
topnetat
now its working fine*
You can close the ticket