Title: Form elements display on same line
Last modified: October 7, 2023

---

# Form elements display on same line

 *  [matthewbara](https://wordpress.org/support/users/matthewbara/)
 * (@matthewbara)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/form-elements-display-on-same-line/)
 * Hi,
 * Our forms are displaying multiple elements per line, here’s an example: [lppl.ca/suggestion-for-purchase/](https://lppl.ca/suggestion-for-purchase/).
   Without access to the layout of the forms, we’re not sure how to fix it. Emails
   have been displaying in one line so we added this code to functions.php to fix
   it: add_filter(‘wpcf7_autop_or_not’, ‘__return_false’);. But this code only fixes
   the breaks in emails, not the form. Any suggestions how to make the forms display
   properly?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fform-elements-display-on-same-line%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/form-elements-display-on-same-line/#post-17108008)
 * See [Editing form template](https://contactform7.com/editing-form-template/)
 * What content do you have in the Form tab panel?
 *  Thread Starter [matthewbara](https://wordpress.org/support/users/matthewbara/)
 * (@matthewbara)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/form-elements-display-on-same-line/#post-17113626)
 * This is the content:
 * ![](https://i0.wp.com/lppl.ca/wp-content/uploads/2023/10/cf7tab.png?ssl=1)
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/form-elements-display-on-same-line/#post-17114832)
 * The contact form on the [site](https://lppl.ca/suggestion-for-purchase/) looks
   great with no problem. What do you want it to be like?
 *  Thread Starter [matthewbara](https://wordpress.org/support/users/matthewbara/)
 * (@matthewbara)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/form-elements-display-on-same-line/#post-17116166)
 * Because we changed line breaks in functions.php yesterday. But now our emails
   are missing line breaks. We’re stuck with the choice between no line breaks in
   the forms or no line breaks in our emails. Here’s an email example: From: test
   <99@gretzky.ca> Subject: Suggestion for Purchase Name: test Phone Number: 99999
   Email Address: [99@gretzky.ca](https://wordpress.org/support/topic/form-elements-display-on-same-line/99@gretzky.ca?output_format=md)
   Library Card: 99999 Pickup Location: Fleming Branch, Beamsville Book Title: hhh
   Author Name: Publisher Name: Publication Date: Item Price: Material Type: Book
   Age Group: Young Child Message Body: hi 😕 –. Is there a way for both the forms
   and emails to display line breaks properly?
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/form-elements-display-on-same-line/#post-17117778)
 * > Because we changed line breaks in functions.php yesterday.
 * What do you mean by this?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Form elements display on same line’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/form-elements-display-on-same-line/#post-17117778)
 * Status: not resolved