How to Solve the Annoying Line Break Problem in WordPress

Line Break WordPress AnnoyingYou might have noticed while creating a post in WordPress that it strips out all the additional line breaks that you create. This can be very annoying.

At first I thought it was a theme problem, so I switched to the default theme, added the line breaks again and updated the post. But it turns out, WordPress still manages to strip out the line breaks.

A quick Google search showed me that I was not the only one facing this problem. There were several threads in the official wordpress forum about this issue. So, I decided to share the solution that I arrived at.

By default, the TinyMCE editor that WordPress uses is configured to strip out the extra break <br> tags and paragraph <p> tags. To solve this problem, all you need to do is turn this feature off in the TinyMCE editor that WordPress uses. Unfortunately, you cannot modify the TinyMCE settings of WordPress. That’s where TinyMCE Advanced comes in. Follow the steps below to solve this annoying problem:

  1. Install TinyMCE Advanced
  2. Go to Dashboard >> Settings >> TinyMCE Advanced
  3. Towards the bottom of this settings page, you will see “Advanced Options“. Check the box next to “Stop removing the <p> and </br> tags when saving…”

    wordpress line break

  4. Click the “Save Changes” button

That’s it. You should be able to easily add as many line breaks as you wish without having them stripped off by WordPress :)

There are no comments yet. Be the first and leave a response!

Leave a Reply

Wanting to leave an <em>phasis on your comment?

Trackback URL http://kamranchowdhury.com/how-solve-annoying-line-break-problem-wordpress/trackback/