• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

Extra Line Breaks in Contact Form 7

January 11, 2012 by Webhead

Problem:

I added the Contact Form 7 wordpress plugin and created my form.  I created it with no line breaks whatsoever.  It looked like this:

<span>Name</span><span>[text* contact-name]</span><span>Email</span><span>[email* contact-email]</span><span>Message</span><span>[textarea* contact-message x4]</span>[submit “Submit”]

However, on the page, I had <br> tags after Name and each of the labels.  WHY?

 

Solution:

Apparently WPCF7_AUTOP function in the plugin automatically adds the br tag.  The best solution is to add a style to hide the br in the form:

 

.wpcf7-form-control-wrap br { display: none; }

The rest of the solutions are found here:

http://www.alvaronicardo.com/remove-line-break-from-contact-form-7/

keywords:  contact form 7 extra break line

Filed Under: Coding Tagged With: css, wordpress

Primary Sidebar

Topics

apache apple block editor chrome cms css debug eCommerce embed firebug firefox git gmail goDaddy google hosting htaccess html html 5 IE crap image iPad iPhone javascript jquery linux localization mac os x ms sql mysql open source optimize php php 5.3 responsive rest api seo svg tinymce woocommerce wordpress wpengine xss yii youtube




Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools