WordPress.org

Ready to get started?Download WordPress

Forums

MailChimp List Subscribe Form
Using JavaScript for subscription for and custom subscriptio (8 posts)

  1. ArneRobot
    Member
    Posted 1 year ago #

    Hello,

    I am using the MailChimp WordPress plugin directly in a page and it works fine technically, was also easy to set up. But now I am a bit clueless how to further customize my subscription form and subscription process. So is there a documentation for the plugin? Here are my concrete questions:

    1. In the plugin-settings I see the option: turning this on will use fancy javascript submission and should degrade gracefully for users not using javascript. It is optional and can be turned on or off at any time. How can I use that? When I turn it on and subscribe I get a blank page with just one black line of text. I would like to have success and error messages appear dynamically on the same page.

    2. How can I send people back to my subscription form page after they opt-in via the email link? Is that completely managed through the MailChimp backend?

    Thanks for your help!

    Arne, Berlin/Germany

    http://wordpress.org/extend/plugins/mailchimp/

  2. mc_nate
    Member
    Posted 1 year ago #

    Hey Arne!

    Would you mind sending me a link to your site so I can have a bit of a closer look as to what's going on?

    Much appreciated!

  3. ArneRobot
    Member
    Posted 1 year ago #

    Hello mc_nate,

    thanks for your reply. I just put the newsletter back online here: http://www.storyfeed.de – scroll to the right until you see "newsletter". You can subscribe to the newslist, it's still in test mode. You see what happens then.

    Thank you and all the best!
    Arne

  4. mc_nate
    Member
    Posted 1 year ago #

    Hey again, Arne!

    I've been playing with this all afternoon, but haven't been able to replicate this same behavior in my own setup. Out of curiosity, are you able to replicate this same strange behavior using one of WordPress' default themes? Additionally, are there any other plugins that are enabled? You might try disabling those one at a time to see if there's a specific conflict with a plugin that we're running into.

    As far as an immediate workaround, you might check out MailChimp's embedded form as a solution:

    How can I add my signup form to my website?: http://eepurl.com/gOGN

    Let me know if you have any other questions!

    Cheers

  5. ArneRobot
    Member
    Posted 1 year ago #

    Hi Nate,

    Thanks for your reply!

    I tested the same settings in a different theme file and it worked without a problem.
    I then looked into my problem installation again and there is not other plugin and work besides the MailChimp plugin.

    I played around with the settings and now when I DEactivate the JavaScript option it kind of works but seems to switch to a different page for a moment before displaying the message in the form leading to the effect that my page scrolls to the very beginning where I don't see the newsletter form anymore. Please have a look at it at the same location: http://www.storyfeed.de

    I didn't test the embedded form yet, will try that in a minute.

    Thank you!
    Cheers

  6. ArneRobot
    Member
    Posted 1 year ago #

    Hi Nate,

    I had to move the script to a different page since the main website is live now. You find the subscription form with the somehow disfunctional JavaScript here: http://www.storyfeed.de/newsletter.

    What I see here is that it does display the messages inside the page and inside the form now but still reloads the page before doing so. Any idea why it does that?

    Thank you!
    Cheers, Arne

  7. ArneRobot
    Member
    Posted 1 year ago #

    Hello,

    I feel a bit left alone on this topic!

    I have the following lead to the problem: my theme makes essential use of jQuery to scroll and columnize the content. When I disable the scrolling script it doesn't help. Disabling the colonizer crashes my whole theme so I can't test that.

    Again here is the problem: when I enable JavaScript handling of the subscription I get a blank page with just the form messages on the top. The subscription though does work! When I disable JavaScript I get the messages correctly inside the form BUT the page reloads before displaying the message which is not working for my design.

    Is it possible that there is a conflict between the two jQuery calls in my website (columnizer + scrolling / MailChimp form handling)? How can I use just one jQuery call for both functions?

    The site can be found here: http://www.storyfeed.de/newsletter

    Thanks a lot! I really need help on this one!

    Arne

  8. mc_nate
    Member
    Posted 1 year ago #

    Hey again, Arne.

    I haven't forgotten about you, I just haven't been able to replicate this issue outside of this one theme.

    As far as the refresh goes, that is the expected behavior once Javascript is disabled. Because there's no script to validate the form inline, it has to refresh and then the "success" message should be displayed accordingly.

    With regard to the jQuery, that's going to go a bit beyond what I'm able to support as that's essentially deconstructing our plugin and/or that specific theme. The best option, for now, might be to just go with the embedded form rather than the plugin as that should let you do exactly what you're wanting to do. You can also have the embedded form added in an iframe to completely isolate it from anything going on with the theme.

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic