Remove empty p tags from contact form 7


Contact form 7 plugin is very good plugin.You can create html forms in WordPress using this plugin. This plugin automatically insert <p> and <br/> html tags in forms. If you want to remove these tags then define following variable in wp-config.php file.

define ( 'WPCF7_AUTOP', false );

It will prevent contact form 7 to add empty <p> tag and <br> tag in form. So you can create form as you want its design.

Advertisements

2 thoughts on “Remove empty p tags from contact form 7”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s