Do you want to remove the empty <p> and <br> Tags from the Contact Form 7 (fields) that are automatically added when you insert an input field?
Then you land in the right place.
Here:
We have posted the guide that will help you to easily remove default <p> and <br> Tags from the Contact Form 7. Just follow the below steps.
Remove <p> and <br /> Tags From Contact Form 7
Below we have embedded the code snippet that you need to copy and paste it into your WordPress theme’s functions.php file.
And after that:
Save and view the result by opening the page where you have embedded the Contact Form 7 fields in your browser.
Code to Remove Empty P and BR tags CF7
The above code will prevent Contact Form 7 to add empty <p> and <br> tags and let you design the way you want.
That’s it.
Read Also: Deregister Contact Form 7 CSS
Hope this code helped you let us know your opinion or the error if you got any in the comment box.
Don’t forget to share this Code to Remove Empty P and BR tags from CF7