Created
April 17, 2021 21:26
-
-
Save prosantamazumder/4375d3245778221fb688df9af9ea415c to your computer and use it in GitHub Desktop.
How to Remove <p> and <br /> from Contact Form 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Are you looking for a way to remove all of the extra <p> and <br /> from your forms? Contact form 7 is a great tool but sometimes it adds a little extra HTML that you might want to get rid off within your pages and posts. We have created a quick code snippet that you can use to remove <p> and <br /> from Contact Form 7. | |
Instructions: | |
All you have to do is add this code to your wp-config.php file: | |
define('WPCF7_AUTOP', false ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment