I’ve been facing an issue with Contact Form 7 where it automatically adds <p>
tags around the content in the form. This is affecting the layout and formatting of my forms.
I’ve already tried the following solutions, but the issue persists:
Used the wpautop
filter by adding the following code to my theme’s functions.php
:
add_filter('wpcf7_autop_or_not', '__return_false');
Try to disable “wpautop” for the plugin by placing the following constant in wp-config.php:
define( 'WPCF7_AUTOP', false );
None of these steps have resolved the problem, and I still see <p>
tags being added around my form fields or wrappers in the output.
Has anyone else encountered this issue? Are there specific steps or additional filters I should look at to completely disable auto-added <p>
tags for Contact Form 7?
Any advice or insights would be greatly appreciated!
Thank you!
The page I need help with: [log in to see the link]