How to put a contact form inside the footer of all the articles and pages of a website?

Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress.

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 5 years ago.

Improve this question

I have a Contact Form 7 form inside a WP website. I want to insert this form at the end of every page and article of the website, near the copyright notice.

I just know the short code of the form (it works well inside a specific post):

[contact-form-7 id="42" title="Formular de contact"]

Having the short code I think that the question is not off-topic. I have basic knowledge of PHP and JavaScript.

I have searched Google a little and I still do not know how to do this.

Thank you.

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 5 years ago.

Improve this question

I have a Contact Form 7 form inside a WP website. I want to insert this form at the end of every page and article of the website, near the copyright notice.

I just know the short code of the form (it works well inside a specific post):

[contact-form-7 id="42" title="Formular de contact"]

Having the short code I think that the question is not off-topic. I have basic knowledge of PHP and JavaScript.

I have searched Google a little and I still do not know how to do this.

Thank you.

Share Improve this question asked Feb 12, 2020 at 9:44 silviubogansilviubogan 15910 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

You can add contact form shortcode in footer.php via use do_shortcode

<?php echo do_shortcode('[contact-form-7 id="42" title="Formular de contact"]') ?>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744756079a4591890.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信