title: How to display the Mailchimp subscribe popup form on click
body: <p>I am using WordPress. I have to display the Mailchimp subscribe popup on click on the button.</p>
  
  <p>I tried below code but it's not displaying my popup. I checked on google and SO, I found some solution but that is not working.</p>
  
  <p>Would you help me out with this? </p>
  
  <pre><code>&lt;ul&gt;&lt;li class="open-popup"&gt;&lt;a href="#"&gt;Subscribe to our mailing list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
  
      &lt;script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"&gt;&lt;/script&gt;
      &lt;script&gt;
      function showMailingPopUp() {
          //alert("hello");
          require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us20.list-manage.com","uuid":"bd7ed5583d8f567d56a2ed5ec","lid":"007366445e","uniqueMethods":true})})
          document.cookie = "MCEvilPopupClosed=; expires=Thu, 01 Jan 1970 00:00:00 UTC";                  
      };
      $(function() {
          $(".open-popup a").on('click', function() { 
              showMailingPopUp();
          });
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>Can anyone help me out here?</p>