Title: Error message styling improvements
Last modified: April 17, 2021

---

# Error message styling improvements

 *  [Willem Prins](https://wordpress.org/support/users/somtijds/)
 * (@somtijds)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-message-styling-improvements/)
 * Hi!
 * First of all, thanks for making this plugin publicly available: so far the shortcode
   has been a great help to integrate a SendInBlue signup form into our client’s
   website.
    I’m trying to customize the way the form box is styled – specifically
   the error/validation messages – and it looks as if there are not many options
   available (yet) for developers to filter or modify the markup responsible for
   the messages. The relevant code lies in sendinblue.php, specifically the `generate_form_box()`
   function.
 * There is a CSS spec that _could_ be helpful in the future, but this doesn’t work
   yet:
    .sib_msg_disp:has(.sib-alert-message-warning) this would allow us to target
   this element and the ones around it using sibling selectors etc.
 * So for easier CSS targeting, it would be helpful to have:
 * – apply_filters() for (parts of) the output
    – css classes that are added to 
   the form or individual fields based on the validation state, like ‘hasError’ ‘
   isValid’ etcetera. This should be fairly easy to achieve by adding it to the 
   JS.
 * Is this something you will be working on in the future? Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Willem Prins](https://wordpress.org/support/users/somtijds/)
 * (@somtijds)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-message-styling-improvements/#post-14331177)
 * And I hope it’s okay if I point out something else: the 2 seconds to show the
   success message are way too short and not very user-friendly.
 * The responsible code seems to be line 173 in mailin-front.js, which hides the.
   sib-alert-message element after a timeout of 2000ms.
    Again, it would be great
   to have at least _some_ control over this behaviour.
 * Looking forward to hearing from you!
 *  Plugin Author [Dulé](https://wordpress.org/support/users/lephenixdelafamille/)
 * (@lephenixdelafamille)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-message-styling-improvements/#post-14331798)
 * Hi [@somtijds](https://wordpress.org/support/users/somtijds/) Thanks for your
   great feedback. I added your suggestions to the backlog for improvements. I’ll
   get back to you in the following week with more info on the timeline.
 * Have a great weekend. Talk to you soon.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error message styling improvements’ is closed to new replies.

 * ![](https://ps.w.org/mailin/assets/icon-256x256.png?rev=2993173)
 * [Brevo - Email, SMS, Web Push, Chat, and more.](https://wordpress.org/plugins/mailin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailin/)
 * [Active Topics](https://wordpress.org/support/plugin/mailin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailin/reviews/)

## Tags

 * [apply_filters()](https://wordpress.org/support/topic-tag/apply_filters/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dulé](https://wordpress.org/support/users/lephenixdelafamille/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/error-message-styling-improvements/#post-14331798)
 * Status: not a support question