Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Adijeff,

    I just looked at your page source and it seems that the <div> element that is wrapping the form is missing its closing > tag, which causes some of the form code to show-up.

    This is the part with the error in it.

    <div class="mailchimp-signup"<script type="text/javascript">!function(){window.mc4wp||(window.mc4wp={listeners:[],forms:{on:function(n,w){window.mc4wp.listeners.push({event:n,callback:w})}}})}();</script><!-- MailChimp for WordPress v3.0.10 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-1" class="mc4wp-form mc4wp-form-1985 mc4wp-form-basic" method="post" data-id="1985" data-name="Default sign-up form" ><div class="mc4wp-form-fields"><p>

    If you look closely at the start, you’ll see that it should read like this.

    <div class="mailchimp-signup"><script .....

    Hope that helps. If not, let me know!

    Thread Starter adijeff

    (@adijeff)

    Yes, that was it – thanks very much for spotting the mistake. And I am very sorry it was nothing to do with the plugin!

    In the code I had:
    echo '<div class="mailchimp-signup"';
    But it should have been:
    echo '<div class="mailchimp-signup">';

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error showing before form’ is closed to new replies.