First, make sure that you have installed MailChimp for WordPress plugin. After this navigate to MailChimp for WP and enter your API key from MailChimp, click on the Get Your API key link if you need to create new API key. Here is the code reference for newsletter form:
1 2 3 4 5 6 7 8 9 10 11 12 |
<div class="form-group"> <input type="email" name="EMAIL" placeholder="Your email address" required /> </div> <input type="submit" value="Subscribe" class="newsletter__btn btn btn--md btn--color btn--wide" /> <div class="deo-newsletter-gdpr-checkbox"> <label class="deo-newsletter-gdpr-checkbox__label"> <input class="deo-newsletter-gdpr-checkbox__input" name="AGREE_TO_TERMS" type="checkbox" value="1" required=""> <span class="deo-newsletter-gdpr-checkbox__text">I agree to storage of my email according to <a href="#" target="_blank">Privacy Policy</a></span> </label> </div> |
Code reference for the sidebar newsletter form widget:
1 2 3 4 5 |
<h3 class="widget-title newsletter-wide__title">Purosa Newsletter</h3> <p class="newsletter-wide__text"> Subscribe for purosa news and receive daily updates. For those who want to keep in touch with us. </p> [mc4wp_form id="96"] |