I am PHP programmer, but I am not familiar with WP yet (I do understand some basic things).
I have static page and I have to place a DOWNLOAD button on this page. Click on this button will allow user to download some document. But before user is allowed to download anything, div.popup appears where user is asked to fill in and submit email address.
I have about 5 buttons on page with different download files. All should act the same (ask email before download is allowed).
Can you, please, guide me how to properly achieve this in WP: 1) how to properly add such kind of button on static page on wp-admin part Can I add something like this in wp-admin page editor? Or shoudl I create some short_code thet will create this?
2) how to create div.popup with form before user is allowed to download I can create invisible div on the page and add some jquery when button is pressed. But how to submit this form? Maybe I can use ajax to send email and allow download. But what is the best opetion - where to place this code?
I can do this on pure PHP page, but I do not understand this in WP.
I am PHP programmer, but I am not familiar with WP yet (I do understand some basic things).
I have static page and I have to place a DOWNLOAD button on this page. Click on this button will allow user to download some document. But before user is allowed to download anything, div.popup appears where user is asked to fill in and submit email address.
I have about 5 buttons on page with different download files. All should act the same (ask email before download is allowed).
Can you, please, guide me how to properly achieve this in WP: 1) how to properly add such kind of button on static page on wp-admin part Can I add something like this in wp-admin page editor? Or shoudl I create some short_code thet will create this?
2) how to create div.popup with form before user is allowed to download I can create invisible div on the page and add some jquery when button is pressed. But how to submit this form? Maybe I can use ajax to send email and allow download. But what is the best opetion - where to place this code?
I can do this on pure PHP page, but I do not understand this in WP.
Share Improve this question asked Jul 16, 2013 at 19:38 renathyrenathy 2131 gold badge4 silver badges16 bronze badges1 Answer
Reset to default 0It looks like you are creating an HTML form that allows you to interact with the user. This form would collect an email address and upon successul retrieval it would allow a file downlowd.
For forms, your best bet is to install a forms plugin. A very good form plugin that is easy to use is Contact Form 7.
What you have to do is create a page via WP-Admin area, then create a Contat Form 7 add-on, and embed it in your page.