Instantly share code, notes, and snippets.
Simple Bootstrap template for Mailchimp embedded form with input group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Mailchimp newsletter</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<style> | |
div.mce_inline_error { | |
color: red; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-6 col-sm-offset-3"> | |
<form action="YOUR_MAILCHIMP_URL" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> | |
<div style="position: absolute; left: -5000px;" aria-hidden="true"> | |
<input type="text" name="b_f7fcffd059cde2df667ed71e0_b59497a580" tabindex="-1" value=""> | |
</div> | |
<div class="mc-field-group"> | |
<div class="form-group"> | |
<label for="mce-EMAIL" class="sr-only">Email Address</label> | |
<div class="input-group"> | |
<input type="email" value="" name="EMAIL" class="required email form-control" id="mce-EMAIL" placeholder="Your email"> | |
<span class="input-group-btn"> | |
<button class="btn btn-default" type="submit">Subscribe</button> | |
</span> | |
</div> | |
</div> | |
</div> | |
<div id="mce-responses"> | |
<div class="response text-warning" id="mce-error-response" style="display:none"></div> | |
<div class="response text-success" id="mce-success-response" style="display:none"></div> | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment