2017-10-18 13 views
0

私はワードプレスのウェブサイトにサインアップフォームを埋め込もうとしていました。私はこのようにしています:私は、そのページのWordPressのエディタに行き、生のHTMLコードを追加するオプションを選択します。クロームの要素オプションを検査からあり、その後デザインは罰金を来ていると私はすべてのコードを見ることができますMailchimp埋め込みコードがワードプレスで動作しない

<!-- Begin MailChimp Signup Form --> 
<link href="//cdn-images.mailchimp.com/embedcode/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; } 
/* 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="https://luisaspagnolistanford.us3.list-manage.com/subscribe/post?u=3b43aec3c5c107948b570c43d&amp;id=b67bd69928" 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">Get notified about events and sales</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_3b43aec3c5c107948b570c43d_b67bd69928" 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--> 

が、クリックされたとき、それは何かをdoesntのボタンを提出してもエラーがない。そして、以下のコードを貼り付け。私はここで何が間違っているのだろうかと思っています。

答えて

0

target="_blank"これは、フォームの応答が新しいタブで開くことを意味します。タブを探します。

あなたのcore-scripts.jsファイルにデフォルトの動作を妨げているスクリプトがあります。それを除く。

$("#mc-embedded-subscribe-form").submit(function(e){ 
    var $this = $(this); 

    e.preventDefault(); 
+0

残念ながら、ポップアップや新しいタブはありません。ここで確認してください[link](http://luisaspagnolistanford.com/) –

関連する問題