admin管理员组文章数量:1130349
I have an external html form that I would like to add to my wordpress developed site.
The form links to other areas in the business like the cashiers, so when customers fill the form out, the content is added to their system.
I have seen different ways such as adding raw html and adding as media however these do not allow me to edit the form as the visual composer stops working after I paste in the html code.
What other options do I have if any.
I have an external html form that I would like to add to my wordpress developed site.
The form links to other areas in the business like the cashiers, so when customers fill the form out, the content is added to their system.
I have seen different ways such as adding raw html and adding as media however these do not allow me to edit the form as the visual composer stops working after I paste in the html code.
What other options do I have if any.
Share Improve this question asked Aug 28, 2018 at 16:15 Chris McConneyChris McConney 16 bronze badges2 Answers
Reset to default 0If you want to have a form on a page, there are plugins that allow that; a popular one is "Contact Form 7". But if you want a specific 'action' page to fire when the submit button is used, then it might be best to create a page template.
The template could include the form code and the 'action' of the form tag could call another page (and template) that would process the form then display a page.
Learn more about templates here: https://codex.wordpress/Templates .
And it would be best to put the templates in a Child Theme (if you aren't using your own custom theme), so any theme updates don't overwrite your changes. (Although custom-written templates aren't overwritten on the theme update, unless you have changed a theme-supplied template.)
I figured out that you can not directly have a html form display correctly on a page. To work around this, I added the html document to the media and then linked directly to this using the generated hyperlink.
I have an external html form that I would like to add to my wordpress developed site.
The form links to other areas in the business like the cashiers, so when customers fill the form out, the content is added to their system.
I have seen different ways such as adding raw html and adding as media however these do not allow me to edit the form as the visual composer stops working after I paste in the html code.
What other options do I have if any.
I have an external html form that I would like to add to my wordpress developed site.
The form links to other areas in the business like the cashiers, so when customers fill the form out, the content is added to their system.
I have seen different ways such as adding raw html and adding as media however these do not allow me to edit the form as the visual composer stops working after I paste in the html code.
What other options do I have if any.
Share Improve this question asked Aug 28, 2018 at 16:15 Chris McConneyChris McConney 16 bronze badges2 Answers
Reset to default 0If you want to have a form on a page, there are plugins that allow that; a popular one is "Contact Form 7". But if you want a specific 'action' page to fire when the submit button is used, then it might be best to create a page template.
The template could include the form code and the 'action' of the form tag could call another page (and template) that would process the form then display a page.
Learn more about templates here: https://codex.wordpress/Templates .
And it would be best to put the templates in a Child Theme (if you aren't using your own custom theme), so any theme updates don't overwrite your changes. (Although custom-written templates aren't overwritten on the theme update, unless you have changed a theme-supplied template.)
I figured out that you can not directly have a html form display correctly on a page. To work around this, I added the html document to the media and then linked directly to this using the generated hyperlink.
本文标签: html form added to a page
版权声明:本文标题:.html form added to a page 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749049033a2308321.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论