admin管理员组文章数量:1391818
I'm designing my WordPress Website. I don't want my visitors to go for new page on clicking the contact us/get in touch button. I want my form to show up as popup (only when clicked on button).
I'm designing my WordPress Website. I don't want my visitors to go for new page on clicking the contact us/get in touch button. I want my form to show up as popup (only when clicked on button).
Share Improve this question edited Mar 5, 2020 at 7:44 Vinay Kumar L asked Mar 4, 2020 at 6:11 Vinay Kumar LVinay Kumar L 132 bronze badges 2- Many (if not all) contact form plugins let you place the forms anywhere, not just on their own pages. Which one are you using? Or did you mean as a pop-up lightbox or something? – Rup Commented Mar 4, 2020 at 6:29
- Hi thanks for an answer. Yes. Its more like a pop-up. I don't want user to go for new page when he clicks on "get in touch" button. Instead he should get the form in the samepage itself as a pop-up (only when he clicks) – Vinay Kumar L Commented Mar 5, 2020 at 7:32
1 Answer
Reset to default 0if you are using Contact Form 7 which is usually one of the popular free plugins you can use shortcode to display forms on a normal page by copying this into the editor and editing the form ID and title as needed.
[contact-form-7 id="1234" title="Contact form 1"]
EDIT: You can use simply jQuery to hide/show the form
https://codepen.io/AKiwi92/pen/mdJBpPg
本文标签: phpHow to show contact form popup in same page
版权声明:本文标题:php - How to show contact form popup in same page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744694567a2620198.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论