Call us at:


(540) 335-3304

Creating line breaks in WordPress

Have you ever tried to put one or more line breaks between lines of text by hitting the return key, only to find that WordPress strips it out no matter how many times you reset it?

The reason this happens is because that extra space is considered, by WordPress, to be a style attribute and wants it to be controlled with CSS.

Well, here’s some good news: there are a few different ways to overcome this.

Hand code a break

WordPress HTML Editor Tab

Switch to the HTML editor and manually add a line break by typing the following code where you want the break to appear.

 <br/>

( “br” stands for “break”)

If you want more than one break enter the code twice.

 <br/>  <br/>

Keyboard Combination

Another option is to use the keyboard combination of Shift (Option (PC)) + Return. This will place a forced line break pushing the text down to the next line. If you want more than one break hit the combination again.

Use the TinyMCE Advanced Plugin

If you’re not happy with either of the previous methods then you can install the TinyMCEAdvanced plugin and check the box in the settings that says “Stop removing and tags.” This should keep WordPress from stripping out the line breaks.

TinyMCE Advanced Settings Box

Additionally, the plugin installs 16 other features to the WordPress TinyMCE editor that makes adding content faster and easier.

TinyMCEAdvanced Options Page

 

Leave a Reply

More from Small Time Creative

Join Our Mailing List

Get free advice about how to rank better in search engines, maximize the value of social media, and find helpful online services to improve your web site.

Join Now