Make WordPress Core

Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#52890 closed defect (bug) (invalid)

How can I prevent <form> tags from automatically inserting <p> tags.

Reported by: rosener Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Formatting Keywords:
Focuses: Cc:


I believe after installing the latest version of WordPress 5.7
HTML opening <form> tags and HTML closing </form> tags
are inserting paragraphs breaks as shown in the attached screen








How can I remove this extra information??


Attachments (1)

extra-spaces.png (69.9 KB) - added by rosener 6 months ago.

Download all attachments as: .zip

Change History (4)

6 months ago

#1 @rosener
6 months ago

If I misspell "<form " to </fform " these extra paragraph tags do not appear.

#2 @sabernhardt
6 months ago

  • Component changed from General to Formatting
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi @rosener!

The support forums are better for individual site help.

In this case, however, the extra paragraph tags seem to go away by removing the <center> (and </center>) tags. Then to align the content of each div, you could add text-align: center;:

<div style="padding:0 10px 15px 0; float:left; text-align: center;">

#3 @rosener
6 months ago

While it will take me some time to implement this on all my pages, your solution works. Thanks, Bill

Note: See TracTickets for help on using tickets.