WordPress tip #1

Writing with Single Lines Not Double in Your Blog Posts

If you are a poet, quoting poetry, or need to create a block of text featuring single lines not double lines between each line, here’s how.

By default, WordPress and most blogging programs turn every line into a paragraph. When you hit the ENTER or RETURN button on your keyboard, it puts in a line break which WordPress interprets as the end of a sentence.

Thus, the underlying code of your paragraph looks like this:

<p>This is a paragraph of text that goes on, wrapping
around the line over and over again, until you finally get to
the end of the paragraph and hit the ENTER key.</p>
<p>Then a new paragraph is started on the next line and
on your blog post, there is a space between each paragraph,
set by the blog designer in your CSS stylesheet. The space
is wider on some blog designs and narrower on others.</p>

This looks like the paragraphs you see in this article, with a space between each paragraph, created by the P Paragraph HTML tag.

To create a block of text in which you control the length of the line, but each line is on top of the other with no paragraph spacing between the lines, such as poetry, such as:

We shall never cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time.
T. S. Eliot

Switch your WordPress post editor to the HTML/Code view and manually add a line break HTML tag to the end of each line <br />:

We shall never cease from exploration<br />
And the end of all our exploring<br />
Will be to arrive where we started<br />
And know the place for the first time.<br />
<cite>T. S. Eliot</cite>

WordPress will automatically wrap the whole thing in a Paragraph tag, but will honor the line breaks so each line appears on it’s own with no spacing between.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: