• 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

    (@somtijds)

    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é

    (@lephenixdelafamille)

    Hi @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.