Remove <p> Tag From Contact Form 7

Contact Form 7 is the most popular free form plugins for WordPress. With CF7, it is easy to make any form that you want.

Although this is an excellent extension, there is some annoying behavior, as always. By default, it is wrapping our rows into <p> tags like in the case of generic posts. Unlike in a post here, this is mostly unusable because we often want a custom layout for our forms which is prevented by the paragraph elements wrap.

Fortunately, it is easy to turn it off, add the following line to your wp-config.php file: