Skip to content

Instantly share code, notes, and snippets.

@hakikz
Last active December 23, 2018 06:53
Show Gist options
  • Save hakikz/31a863e6820f13c6354b435f4aa40986 to your computer and use it in GitHub Desktop.
Save hakikz/31a863e6820f13c6354b435f4aa40986 to your computer and use it in GitHub Desktop.
Remove P tag from WordPress Contact 7 form plugin
## First go to wp-config.php and just paste the line below
define( 'WPCF7_AUTOP', false ); //Sometimes this block of code will not work on live server then please try the second
## If the first one is not working then please go to your theme folder and paste the line in functions.php
add_filter('wpcf7_autop_or_not', '__return_false');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment