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 13 |
<div class="deo-field-group deo-field-type-input"> <input type="email" name="EMAIL" placeholder="Your email address" required /> </div> <div class="deo-field-group deo-field-type-submit"> <input type="submit" value="Subscribe" /> </div> <label class="deo-consent-checkbox"> <input name="AGREE_TO_TERMS" type="checkbox" value="1" required=""> <span>I have read and agree to the <a href="#" target="_blank" rel="noopener noreferrer">terms & conditions</a></span> </label> |