-1

I am trying to open a MailChimp simple subscription form (email and submit) right next to a button on my Wordpress page.

I just want to have a simple button that says Newsletter and when you click on it the small form appears next to it or bellow it.

I can´t find a plugin to do just this and I wonder if anybody knows any or if I have to do this by coding some js or even a new plugin.

Thanks in advance

  • https://codepen.io/peternguyen/pen/hICga/ – I haz kode Sep 26 '17 at 10:21
  • What have you already tried yourself to do this? Please review [How do I ask a good question](https://stackoverflow.com/help/how-to-ask). Stack Overflow is not a coding service. You are expected to ***research your issue and make a good attempt to write the code yourself*** before posting. If you get stuck on something *specific*, come back and include a [Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) and a summary of what you tried, so we can help. – FluffyKitten Sep 26 '17 at 19:47

1 Answers1

0

Follow the documentation here on how to generate a form embed code.

Then set it's display:none. Then you can use an onclick to fire it.

$('#myButton').on('click', function(){

  $('#mailChimpForm').fadeIn();

});
ProEvilz
  • 5,310
  • 9
  • 44
  • 74