WordPress strips out blank lines

STOP WordPress stripping out blank lines that you actually want to keep!

IN BRIEF:-

Use this code where you want line spaces.

Try this code first:- <* br style=”height:4em”/* > (take out the two asterisks and spaces (AsteriskThenSpace (TWICE))

Type in < p >< code >< br/ >< /code >< /p > without the spaces!

Type in < p >< code >< br/ >< /code >< /p > (without the spaces)!

For Beginners, read the rest below!

Line spacing in your posts plays an important readability role.

When paragraph and heading spacing are all equidistant, it is harder for the reader to know what is related to what. Everything blends into one massive swathe of text. This is a bad experience for the read and bad for you as the writer, as people will leave without reading!

Overcooked WP!

Closeness shows that content is related, but this is overdone automatically in WP.

The WordPress editor will automatically strip out your formatting that it decides is redundant.

WordPress Removes:-

  • (ENTER) multiple returns.
  • (insert a break) “br” tags.
  • (paragraph) “p” tags.

Automatically removing ‘returns’, ‘paragraph tags’ and ‘break tags’ is not what most bloggers expect or want to happen.

This feature is a common source of frustration for WordPress users. We want the paragraph formatting to be right.

Putting numerous ‘returns’ wont work, nor will adding HTML code like Br and Paragraph TAGS!

This WordPress feature offers equal spacing between paragraphs and headings which does not look good and does not help to ease the reading experience for the reader.

How to add the code.

Select HTML mode tab, then look for the place you want your space.

Depending on how your HTML scripts look, you may need to experiment by placing the code before or after bits of script code till you get enough experience.

Usually the code will go after a close tag like < / div > and you should use return, to start typing the code on a new line.

If you do experiment with where to place the code, it is wise just to copy the HTML code original into notepad or similar and save it, so that you can copy it back into the WordPress HTML view if you get it wrong!

Use select allĀ  (right click and select all), within the HTML view and copy and paste the code into notepad or similar text editor and save it to your desktop.

Type in < p >< code >< br/ >< /code >< /p > (without the spaces)!

Then use copy and paste to insert the code on each line that you want to add a blank empty line or blank space.

Use it between paragraphs or headings or ordered lists or where-ever. You can even use it two or three times consecutively, to add two, three or more empty lines.

I hope that you found this post helpful, please leave a comment below.
AndyGold.

This entry was posted in HTML for WordPress. Bookmark the permalink.

One Response to WordPress strips out blank lines

  1. Hello everybody! Do you know where I can read additional websites about this?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>