I would like to style the error outputted in the apbct_form__gravityForms__showResponse
function on line 3043 of /cleantalk-spam-protect/inc/cleantalk-public-integrations.php
Currently the gravity forms wrappers are using the general confirmation message classes for Gravity Forms with no class specific to an actual error. This prevents me from being able to style the Cleantalk errors since any CSS would apply to all of my Gravity Forms confirmation messages which I obviously don’t want since that would include success messages generated by Gravity Forms and not just Cleantalk errors.
Also the <font> tag is not supported in HTML 5. You should consider swapping that out for a different tag. If you add a class to it, that’s all I need.
For example, this is what the plugin is currently outputting:
<div id="gform_confirmation_message_4" class="gform_confirmation_message_4 gform_confirmation_message"><font style="color: red">*** Forbidden. Sender blacklisted. ***</font></div>
Something like this instead:
<div id="gform_confirmation_message_4" class="gform_confirmation_message_4 gform_confirmation_message"><div class="cleantalk-error" style="color: red">*** Forbidden. Sender blacklisted. ***</div></div>
Or even adding the “cleantalk-error” class to the parent instead would give me enough to target in CSS:
<div id="gform_confirmation_message_4" class="gform_confirmation_message_4 gform_confirmation_message cleantalk-error"><div style="color: red">*** Forbidden. Sender blacklisted. ***</div></div>