I have tested the break tag functionality in the wordpress.com site editor and also in the new wordpress desktop app. As far as my testing goes, the problem is limited to self hosted wordpress blog editor. So here are 3 solutions that I recommend for bloggers experiencing wordpress line break issue.
Switch to WordPress.com editor OR the new Offline App
Like I said already, the line break issue is limited to the self hosted wordpress site editor. Go ahead and download Jetpack plugin to manage your self hosted site directly from wordpress.com. The jetpack plugin adds the functionlity to publish posts from your wordpress.com account. The plugin also gives daily stats, stores images on high speed servers, adds a layer of protection, etc. This solution is by far the best.
You can also use the latest offline wordpress editor.
What actually is the line break tag for wordpress editor (<br> or <br/>) ?
The answer to the above question may seem quite weird because it’s none of those. You have to add </br> tags to add line breaks in self hosted wordpress editor. Never in my life have I seen that code! Surprisingly, it’s not even mentioned anywhere in the web!
Adding </br> tags to the self hosted wordpress text editor seems to add line breaks. But this solution can’t be trusted for too long.
The Shortcode Way
An advantage of this method is that the solution is quite eternal. It’s gonna work for a very long time! Moreover you could also specify the amount of space to add in the line break. This is done by adding an empty span tag and setting it’s margin properties to required spacing. You could directly add the code given below or you could create a shortcode for quick access.
Creating Line Breaks shortcode using shortcoder plugin
- Open your wordpress dashboard and navigate to plugins.
- Click on add new and search for “Shortcoder”plugin.
- Install and activate the plugin.
- Now navigate to Settings > Shortcoder .
- Now enter the title for the shortcode such as “line-break”.
- Copy the below code to the text area (not visual) and click “Create Shortcode”.
<span style="display:inline-block;height:%%space-in-px%%;"></span>[sc:line-break ]
Adding the Line Break in wordpress editor
- Open the wordpress editor and click on the shortcoder icon.
- Select line break shortcode to insert it into the post. Enter the desired space in the field (Sometimes you will need bigger values to insert even a little space. This is due to interference of other CSS styles.) .
Have you experienced this kind of problem with wordpress? Let me know your thoughts in the comments.
[sc:h2-style class=”hhh” bg=”#607D8B” ][sc:list-nonReversed color=”#607D8B” ]