Paragraph breaks are not correctly added to output
-
Hi, I just installed this plugin, and I really like it so far for its simplicity, and the fact that it uses the native WordPress maintenance mode function.
However, I noticed that the HTML that is generated on the front page, is all wrapped inside a <p> tag, as follows:
<body id="error-page"> <p><img src="https://www.example.com/logo.png" /> <h1>Website Under Maintenance</h1> This website is currently undergoing maintenance. Please check back soon.</p></body>
This is, of course, not correct HTML. The <p> tags should be around the last line of text, but not around the IMG or H1 tags.
What’s more, if I add a paragraph break to the text, so that there is more text in a 2nd paragraph, the output doesn’t include any new <p> tag around it. It looks like this:
<body id="error-page"> <p><img src="https://www.example.com/logo.png" /> <h1>Website Under Maintenance</h1> This website is currently undergoing maintenance. Please check back soon. This is a new paragraph, but it won't appear as one because it doesn't have a new 'p' tag.</p></body>
Is this something caused by your plugin, or by WordPress itself?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Paragraph breaks are not correctly added to output’ is closed to new replies.