简体   繁体   中英

Contact Form 7 : No p element in scope but a p end tag seen

I am using contact form 7 plugin on my website. Plugin shortcode generated spaces, new lines, and p tags, which w3 validator say there is not a right.

how I can change the template or fix it with other ways

在此处输入图像描述

在此处输入图像描述

the simple way is that add add_filter('wpcf7_autop_or_not', '__return_false'); in your functions.php

another way is to modify/edit your form and remove all your \\n (new line characters).

you can also add this to your wp-config.php

define( 'WPCF7_AUTOP', false );

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM