Title: Extra spaces appear in form, but only when embedded in template
Last modified: June 3, 2023

---

# Extra spaces appear in form, but only when embedded in template

 *  [magmoor](https://wordpress.org/support/users/magmoor/)
 * (@magmoor)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/forms-in-templates-displaying-wrong/)
 * Hi, my website uses a shortcode to embed a Formidable Form. Of course, these 
   broke with the WordPress 6.2.1 update, but it was fixed-ish with WordPress 6.2.2.
 * The problem is that, ever since the fix, the forms display incorrectly when they
   are embedded in the template. For some reason, all the fields are spread out 
   by tons of extra lines and spaces, even putting the asterisks that indicate required
   fields on separate lines.
 * The same forms always display correctly when they’re embedded in page/post content.
   But when they’re embedded in a template (or template part) they display with 
   the unwanted space. Any idea how I can fix this?
    -  This topic was modified 2 years, 11 months ago by [magmoor](https://wordpress.org/support/users/magmoor/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fforms-in-templates-displaying-wrong%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/forms-in-templates-displaying-wrong/#post-16792250)
 * This might have to do with a markup issue introduced with the fix in 6.2.2. Additional
   HTML elements cause set styles to not work properly. Here is the core developers’
   trac ticket about it:
   [https://core.trac.wordpress.org/ticket/58366](https://core.trac.wordpress.org/ticket/58366)
 *  Thread Starter [magmoor](https://wordpress.org/support/users/magmoor/)
 * (@magmoor)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/forms-in-templates-displaying-wrong/#post-16792494)
 * Thanks so much!!! That was it. I was able to use bekk’s patch for now. Hoping
   they fix it soon

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

The topic ‘Extra spaces appear in form, but only when embedded in template’ is closed
to new replies.

## Tags

 * [formidable forms](https://wordpress.org/support/topic-tag/formidable-forms/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [magmoor](https://wordpress.org/support/users/magmoor/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/forms-in-templates-displaying-wrong/#post-16792494)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
