{"id":66459,"date":"2011-12-13T08:45:15","date_gmt":"2011-12-13T13:45:15","guid":{"rendered":"http:\/\/wpmu.org\/?p=66459"},"modified":"2022-02-09T17:34:01","modified_gmt":"2022-02-09T17:34:01","slug":"daily-tip-manually-insert-a-line-break-in-wordpress","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/daily-tip-manually-insert-a-line-break-in-wordpress\/","title":{"rendered":"How to Manually Insert a Line Break in WordPress"},"content":{"rendered":"<p>Sometimes WordPress acts like an evil devil, a digital psychotic dictator that decides it doesn\u2019t want you to have spaces where you want to have spaces. It simply strips out the code no matter how many times you reset it or how many times you save it.<\/p>\n<ul>\n<li><a href=\"#problem\">The Problem<\/a><\/li>\n<li><a href=\"#solution\">The Solution<\/a><\/li>\n<li><a href=\"#example\">Another Example<\/a><\/li>\n<\/ul>\n<h2 id=\"problem\">The Problem<\/h2>\n<p>Mr. WordPress: \u201cOh, you want to start a new paragraph here? Sorry. I don\u2019t want that.\u201d<\/p>\n<p>You: \u201cBut I do.\u201d<\/p>\n<p>Mr. WordPress: \u201cSorry. I don&#8217;t. I win.\u201d<\/p>\n<p>If you\u2019ve never experienced this, trust me, you will.<\/p>\n<p>To give an example, say you want your post to look like this:<\/p>\n<p style=\"text-align: center;\"><a rel=\"lightbox[66459]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/daily-tip-manually-insert-a-line-break-in-wordpress\/spaces\/\" rel=\"attachment wp-att-66461\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-66461 aligncenter\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/spaces.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"642\" height=\"414\" \/><\/a><\/p>\n<p>Instead, it comes out looking like this:<\/p>\n<p><a rel=\"lightbox[66459]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/daily-tip-manually-insert-a-line-break-in-wordpress\/spaces-removed\/\" rel=\"attachment wp-att-66462\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66462\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/spaces-removed.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"643\" height=\"365\" \/><\/a><\/p>\n<h2 id=\"solution\">The Solution<\/h2>\n<p>There is an easily solution to this that SHOULD work for you (at least most of the time). Simply switch to the HTML mode in your editor and <strong>manually add a line break<\/strong> with the following HTML code:<\/p>\n<p><code>&lt;br \/&gt;<\/code><\/p>\n<p>(\u201cbr\u201d stands for \u201cbreak\u201d \u2013 easy enough to remember)<\/p>\n<p><a rel=\"lightbox[66459]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/daily-tip-manually-insert-a-line-break-in-wordpress\/line-break\/\" rel=\"attachment wp-att-66463\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66463\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/line-break.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"642\" height=\"371\" \/><\/a><\/p>\n<p><strong><span style=\"color: #ff0000;\">***<\/span> Sometimes you may even need to add two line breaks, depending on how well your WordPress editor is obeying you.<\/strong><\/p>\n<p><code>&lt;br \/&gt;<\/code><br \/>\n<code>&lt;br \/&gt;<\/code><\/p>\n<h2 id=\"example\">Another Example<\/h2>\n<p>It\u2019s important to note that you will get a new line break where you put the line break code, even if it seems to be in the middle of sentence.<\/p>\n<p><a rel=\"lightbox[66459]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/daily-tip-manually-insert-a-line-break-in-wordpress\/break-sentence\/\" rel=\"attachment wp-att-66464\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66464\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/break-sentence.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"642\" height=\"272\" \/><\/a><\/p>\n<p><a rel=\"lightbox[66459]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/daily-tip-manually-insert-a-line-break-in-wordpress\/break-sentence-result\/\" rel=\"attachment wp-att-66465\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66465\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/break-sentence-result.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"642\" height=\"272\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to add spaces in your posts when WordPress keeps taking them out like an evil devil.<\/p>\n","protected":false},"author":84404,"featured_media":197334,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263],"tags":[390,2186],"tutorials_categories":[],"class_list":["post-66459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-code","tag-wordpress-editor"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/66459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/84404"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=66459"}],"version-history":[{"count":6,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/66459\/revisions"}],"predecessor-version":[{"id":205198,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/66459\/revisions\/205198"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/197334"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=66459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=66459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=66459"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=66459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}