Jump to content

MailChimp Form Display Issue


mpouliot34

Recommended Posts


PrestaShop version: 1.6.0.6

 

Shop URL: http://plussizeappeal.com/

 

Current theme in use: default-bootstrap

 

 

I am trying to add a mailchimp form directly into my site.

 

No matter where I add it it does not keep all the items on 1 line as it should.

 

Any help would be greatly appreciated.

 

 

Here is the code I am using

 

 

<!-- Begin MailChimp Signup Form -->

<link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css">

<style type="text/css">

#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; width:100%;}

/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.

We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */

</style>

<div id="mc_embed_signup">

<form action="//plussizeappeal.us13.list-manage.com/subscribe/post?u=5a573a2927eec283cc469ee2e&id=3f738ab457" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>

<div id="mc_embed_signup_scroll">

<label for="mce-EMAIL">Subscribe to our mailing list</label>

<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>

<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->

<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_5a573a2927eec283cc469ee2e_3f738ab457" tabindex="-1" value=""></div>

<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>

</div>

</form>

</div>

 

<!--End mc_embed_signup-->

post-794829-0-38372600-1469372860_thumb.png

post-794829-0-08985600-1469372867_thumb.png

Link to comment
Share on other sites

Better with 

<link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">

in your  themes/your-theme/header.tpl, before

</head>

And even better use your own form classes, your theme´s form classes

Link to comment
Share on other sites

Better with 

<link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">

in your  themes/your-theme/header.tpl, before

</head>

I added that to the header.tpl as you mentioned and it did absolutely nothing. =-(

 

 

Link to comment
Share on other sites

PrestaShop version: 1.6.0.6

Shop URL: http://plussizeappeal.com/

Current theme in use: default-bootstrap


I am trying to add a mailchimp form directly into my site.

No matter where I add it it does not keep all the items on 1 line as it should.

Any help would be greatly appreciated.


Here is the code I am using


<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
    #mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; width:100%;}
    /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
       We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="//plussizeappeal.us13.list-manage.com/subscribe/post?u=5a573a2927eec283cc469ee2e&id=3f738ab457" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
    <div id="mc_embed_signup_scroll">
    <label for="mce-EMAIL">Subscribe to our mailing list</label>
    <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
    <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_5a573a2927eec283cc469ee2e_3f738ab457" tabindex="-1" value=""></div>
    <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
    </div>
</form>
</div>

<!--End mc_embed_signup-->

After veryfing with a co worker of mine he simply had me remove the clear div tag and it work fine now.

 

<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>

 

 

 

became

 

<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">

 

 

 

Works fine now!!

Link to comment
Share on other sites

  • 3 months later...

Hi,

 

for me internal error 500....

 

it's coming from that:  <script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script><script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';}(jQuery));var $mcj = jQuery.noConflict(true);</script>

 

Some Js issue or conflict ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...