Skip to content

Fix & Improve Mailchimp subscribe button behaviorΒ #93

@ImDavidSantiago

Description

@ImDavidSantiago

Hi everyone,

I noticed that the Mailchimp subscribe button wasn't doing anything when clicked β€” there was no submission, no feedback, and no redirection. Here's what I did to fix and improve it:

πŸ›  What was happening:
The button had no effect when clicked β€” no action was triggered.

βœ… What was fixed and improved:

  • Fixed the click handler so the button now submits properly.
  • Replaced full-page redirection with a fetch() request to Mailchimp.
  • Added a brief success message for user feedback, improving UX.

πŸŽ₯ Demo:

https://i.imgur.com/41lSHXP.gif
Demo

I wasn’t sure if this is the ideal place to share this, but I thought it could help others.
If you find this valuable, I’d be happy to open a pull request.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions