Mailchimp集成在我自己的wordpress中的html注册表单中

时间:2017-06-01 07:00:29

标签: wordpress mailchimp

我有一个注册表单,这是一个带有条带集成的原始HTML,现在我想将一个邮件黑猩猩集成到它中。我已经放置了一个代码

<p>
<label>
 <input type="checkbox" name="mc4wp-subscribe" value="1" />
Subscribe to our newsletter.    </label>
</p>

在我的html页面中。我没有在管理面板中获得订阅者列表。

1 个答案:

答案 0 :(得分:0)

登录您的MailChimp帐户,然后管理联系人 - &gt;组然后在那里创建一个带有复选框的组,然后转到注册表单并嵌入代码将显示复选框编辑代码,然后在下面的表单标签

<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-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; }
	/* 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="//dada.us14.list-manage.com/subscribe/post?u=804ce11ffe4a5684c85f88d38&amp;id=d5ab97dfc9" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
    <div id="mc_embed_signup_scroll">
	<input type="checkbox" value="1" name="group[4917][1]" id="mce-group[4917]-4917-0"><label for="mce-group[4917]-4917-0">Subscribe to our mailing list</label>
</div>
	<div id="mce-responses" class="clear">
		<div class="response" id="mce-error-response" style="display:none"></div>
		<div class="response" id="mce-success-response" style="display:none"></div>
	</div>    <!-- 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_804ce11ffe4a5684c85f88d38_d5ab97dfc9" 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-->