Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Hinzufügen eines Zeilenumbruchs in WordPress (neue Zeilenabstände)

Hinweis der Redaktion: Wir erhalten eine Provision für Partnerlinks auf WPBeginner. Die Provisionen haben keinen Einfluss auf die Meinung oder Bewertung unserer Redakteure. Erfahre mehr über Redaktioneller Prozess.

Möchten Sie in WordPress einen Zeilenumbruch hinzufügen oder den Zeilenabstand zwischen Blöcken anpassen?

In den meisten Textverarbeitungsprogrammen können Sie durch mehrmaliges Drücken der Eingabetaste einfach zusätzlichen Leerraum einfügen. In den Formatierungsoptionen können Sie auch Zeilen mit doppeltem Zeilenabstand nach Absätzen einfügen. Der WordPress-Blockeditor verfügt jedoch nicht über diese Schaltflächen.

In diesem Artikel zeigen wir Ihnen, wie Sie in WordPress ganz einfach einen Zeilenumbruch hinzufügen können.

How to Add a Line Break in WordPress

Bevor wir beginnen, ist es wichtig zu wissen, dass der Zeilenabstand durch das von Ihnen verwendete WordPress-Theme gesteuert wird.

Wir zeigen Ihnen, wie Sie im Block-Editor Abstand zwischen den Blöcken einfügen können und wie Sie die Zeilenabstände in Ihrem Design ändern können, wenn Sie mit dem Ergebnis nicht zufrieden sind.

Video-Anleitung

Subscribe to WPBeginner

Wenn Ihnen das Video nicht gefällt oder Sie weitere Anweisungen benötigen, lesen Sie bitte weiter.

Hinzufügen von doppeltem Zeilenabstand zwischen Blöcken

Wenn Sie auf Ihrer Tastatur die Eingabetaste ( Windows) bzw. die Eingabetaste ( Mac) drücken, um einen Zeilenumbruch einzufügen, betrachtet WordPress diesen als neuen Absatz.

Das bedeutet, dass automatisch ein doppelter Zeilenabstand eingefügt wird, vorausgesetzt, Ihr Theme verfügt über das entsprechende Styling (alle guten WordPress-Themes tun dies).

Adding double line spacing in WordPress

Rufen Sie einfach den Inhaltseditor auf, drücken Sie nach der Zeile die Enter- oder Return-Taste und geben Sie in der nächsten Zeile etwas anderes ein.

Wenn Sie dies einfach tun, sollten Sie auf der Grundlage der Gestaltung Ihres Themas eine klare Unterscheidung zwischen den Absätzen sehen.

Double line space added to create paragraph in WordPress

Einzeiliges Leerzeichen hinzufügen

Wenn Sie z. B. eine Adresse schreiben, möchten Sie wahrscheinlich, dass diese auf Ihrer WordPress-Site einzeilig und nicht zweizeilig ist.

Single Space Preview

In diesem Fall müssen Sie unter Windows die Tastenkombination SHIFT + ENTER oder unter Mac die Tastenkombination SHIFT + RETURN drücken.

Damit teilen Sie WordPress mit, dass Sie eine neue Zeile innerhalb eines bestehenden Absatzes beginnen möchten. Daher ist ein einzeiliger Abstand im Gegensatz zu einem zweizeiligen Abstand erforderlich.

Ändern der Zeilenhöhe und des Zeilenabstands

Selbst wenn Sie im Editor den richtigen Zeilenabstand einfügen, wird er manchmal nicht so angezeigt, wie Sie es in Ihrem Thema wünschen.

Es gibt zwei Möglichkeiten, dies zu beheben:

  1. Ein Plugin verwenden (der einfache Weg)
  2. Manuell mit CSS-Code (für Fortgeschrittene)

Schauen wir uns zunächst die einfache Methode an.

Hinzufügen von Zeilenabständen mit einem Plugin

Wenn Sie Änderungen am Stil Ihres Themes vornehmen möchten, ohne Code lernen zu müssen, ist ein Plugin wie CSS Hero der beste Weg, dies zu tun.

Mit CSS Hero können Sie das Design Ihrer WordPress-Website ganz einfach ändern, ohne Codekenntnisse zu haben.

Add paragraph spacing in WordPress with CSS Hero

Weitere Details finden Sie in unserem vollständigen CSS Hero Test.

Wenn Sie größere Änderungen an Ihrem Thema vornehmen möchten, wie z. B. das Verschieben einer Seitenleiste oder das Hinzufügen einer Fußzeile, dann wäre ein Drag-and-Drop-Plugin für den Seitenersteller die bessere Wahl. Mit einem Plugin für den Seitenersteller können Sie auch kleine Änderungen vornehmen, z. B. Schriftfarben ändern oder Zeilenumbrüche in WordPress hinzufügen.

Sie möchten kein Plugin verwenden oder nur diese eine Änderung vornehmen? Dann ist die manuelle CSS-Code-Option vielleicht die beste für Sie.

Manuelles Ändern des Absatzabstands mit CSS-Code

Um Zeilenumbrüche manuell und ohne Plugin hinzuzufügen, müssen Sie Ihrem Theme einige CSS hinzufügen.

CSS ist im Grunde wie die Formatierungsfunktion in Microsoft Word. Statt auf Schaltflächen zu klicken, werden Sie einfachen CSS-Code schreiben. Es ist nicht so beängstigend, wie manche Anfänger vielleicht denken. CSS ist sehr leicht zu verstehen, wenn Sie einfach den Anweisungen folgen.

Um Ihrem Theme benutzerdefinierte CSS hinzuzufügen, müssen Sie die Seite Erscheinungsbild “ Anpassen aufrufen. Dadurch wird der WordPress-Theme-Anpasser gestartet, wo Sie auf die Registerkarte „Zusätzliches CSS“ in der linken Spalte klicken müssen.

Wenn Sie diese Menüoptionen nicht sehen können, dann verwenden Sie möglicherweise ein Block-Theme. Bitte lesen Sie unseren Artikel über die Behebung eines fehlenden Theme-Customizers im WordPress-Admin.

Adding your custom CSS

In das Feld für benutzerdefiniertes CSS müssen Sie den folgenden CSS-Code einfügen:

.post p{line-height: 1.5em;}

Die oben gezeigte CSS-Regel ändert den Zeilenabstand von Absatzinhalten auf 1,5em. Em ist eine Breiteneinheit für die Typografie.

Wir verwenden die Klasse .post, die WordPress automatisch dem Inhaltsbereich aller Beiträge hinzufügt, um sicherzustellen, dass sie nur Beiträge und nicht anderweitig verwendete Absätze betrifft.

Adding custom CSS to increase line height

Dies ändert nur die Abstände der einfachen Abstände.

Wenn Sie den Abstand zwischen den Absätzen in WordPress ändern möchten (z. B. doppelter Abstand), dann müssen Sie Padding hinzufügen.

.post p { 
line-height: 1.5em;
padding-bottom: 15px;
} 

Sie können die Zahlen an Ihre Bedürfnisse anpassen und in HTML einen doppelten Abstand hinzufügen.

Mit dem WPCode-Plugin können Sie auch benutzerdefinierten CSS-Code zu Ihrer Website hinzufügen. Das Plugin macht das Einfügen und Verwalten von Code auf Ihrer Website sehr einfach.

Weitere Einzelheiten finden Sie in unserer Anleitung zum Hinzufügen von benutzerdefiniertem CSS zu Ihrer WordPress-Website.

Wir hoffen, dass dieser Artikel Ihnen geholfen hat, einen Zeilenumbruch in WordPress einzufügen. Vielleicht interessieren Sie sich auch für unseren Leitfaden zum Start eines WordPress-Blogs und die besten E-Mail-Marketingdienste für kleine Unternehmen.

Wenn Ihnen dieser Artikel gefallen hat, dann abonnieren Sie bitte unseren YouTube-Kanal für WordPress-Videotutorials. Sie können uns auch auf Twitter und Facebook finden.

Offenlegung: Unsere Inhalte werden von unseren Lesern unterstützt. Das bedeutet, dass wir möglicherweise eine Provision verdienen, wenn Sie auf einige unserer Links klicken. Mehr dazu erfahren Sie unter Wie WPBeginner finanziert wird , warum das wichtig ist und wie Sie uns unterstützen können. Hier finden Sie unseren redaktionellen Prozess .

Das ultimative WordPress Toolkit

Erhalte KOSTENLOSEN Zugang zu unserem Toolkit - eine Sammlung von WordPress-bezogenen Produkten und Ressourcen, die jeder Profi haben sollte!

Reader Interactions

100 KommentareEine Antwort hinterlassen

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Ralph says

    This was huge problem back in old creator. I never knew how it will look like and had to hit preview every couple of lines but i think with gutenberg it is way easier and i learnd to just use shift+enter. I do this automatically and almost without consciousness. Don’t know why but some websites don’t allow shift+enter only enter or not and then I’m like „WHY it is not working“!

  3. Colleen Cochran says

    I finally figured out the shift-enter thing for poetry single space lines, but when the post is published and emailed to followers, it loses formatting and all the lines run together. How do I fix that?

    • WPBeginner Support says

      You would want to check with the tool being used to send the notification for the styling for fixing that issue.

      Admin

  4. jan van den hoed says

    Thanks for the explanation. One question though. How can i do the same thing on a smartphone. I’m editing my blog on the way and do not have a laptop available. i tried to do shift enter but that did not work

    • WPBeginner Support says

      If you’re using a page builder plugin they may have a different method for the single/double line spacing. Otherwise, it could be a plugin/theme conflict where you would need to disable your plugins and/or swap your theme to check

      Admin

  5. Tim G says

    I would like to reduce the spacing between normal paragraph lines — IMHO, there is too much white space by default. I’d also like to add a half line at the end of a paragraph, rather than a full line: WordPress by default seems to just do the equivalent of a double carriage return which is rather twentieth century and doesn’t emulate what Word can do. Any ideas?

    • WPBeginner Support says

      You would want to reach out to the support for your specific theme and they should be able to tell you what CSS needs to be added to reduce your line spacing :)

      Admin

  6. Jen says

    God bless you! I’m so grateful for you posting this with the CSS! Who knew that’s all it took for me to change the spacing! I’ve been looking for something like this for a long time! Thank you so much!

  7. Kathy says

    I am using the „shift“ enter method but it does not allow for different size font when I do. Is there a work around?

  8. phil rooksby says

    I don’t have Additional CSS. I’ve tried all sorts of other ways to alter the paragraph spacing but nothing works, looks a real mess. Help please!!!

  9. Norm says

    Thank you for the help. I have been looking all over the place, and wanted to do it with a plug-in. You made it so easy. Again, thank you very much.

  10. Maria says

    Hello! I want to have a simple spacing between my paragraphs and even after pressing enter (for the double space), when I preview the draft nothing has changed (it’s still all one paragraph). Could anyone help?

  11. Rashmi says

    Hi
    I would like to modifying the Line height and Spacing. However there is no ‚editor‘ icon ( Appearance » Editor) from theme’s CSS file.
    So, what can I do?
    Thank you for your reply!

  12. Donna says

    Thank you, thank you, thank you!

    I was in another html editor and could not figure out how to do single spacing.

    You saved the day! :)

  13. Gerard says

    Brilliant and what an eternal lifesaver.

    I was struggling with spacing on one of my client sites and absolutely amazing that you had the exact answer almost at your finger tips. I am now becoming a permanent subscriber

  14. LR says

    I am using the Pilcrow theme and I have no idea how to make the double space between paragraphs happen. Sometimes it happens in my posts but sometimes it doesn’t. When I look in the HTML file I don’t see any post p or padding. I only see the end result of what the post will look like and thats when I know the double spacing didnt work. Can I still go back and re-edit and fix it? Last but not least where you say to go from the appearance to editor menus i dont have those options.
    I have under appearance the following options: themes, customize, widgets, menus, header, background, AMP, Theme Options, Mobile.
    Please help.

  15. Derek Cummings says

    My theme is broken, as in it doesn’t have the double spacing by default. The theme is stuck on the shift+enter mode in other words. So in relation to the following code:

    .post p {
    line-height: 1.5em;
    padding-bottom: 15px;
    }

    Is 15px a normal default double space? How many pixels should it be by default? Also doesn’t it matter where I put this code? Thanx!

  16. Femi says

    Thank you for the tip on the shift + enter. I never knew this for years. Your site has always been a rescue when I get stuck.

  17. Lyn says

    Hello: How do you get custom line spacing (say, 1.5em) for one instance on one page instead of changing the entire theme CSS? I see two other people have asked the same thing with no response, at least not that I found. Thanks!

  18. Cat says

    How about simply adding some text and changing the text colour to white (if the background is white)? This should make it possible to create and customise line spaces much easier (unless, of course, the background is a picture of something that cannot be matched with font colour).

  19. Michael Rich says

    Hi WPBeginner staff,

    I have a different question. I use Visual Composer and have added many Separator with Text dividers between my section headings on my homepage. I would like to make those text headings also be a link to that section.
    However everytime I add the link I lose the section identifying text that I had in the separator and it’s magically replaced with the default text saying „TITLE“.

    To try to make it a link I am adding a the linking code inside this bracket:
    [vc_text_separator title=“1950s CARS“]

    I am scratching my head so hard that I think I’m bald. Any help will get you a lifetime of gratitude!!!

    Thankyou,
    Mike

  20. Anthony Cooper says

    I am using the WordPress ‚Divi‘ theme and found that if you press enter (or shift + enter) twice, in order to create a larger space, it is ignored. To get round this press enter once, type a character on the line, (it does not matter what), highlight it and change the font colour of the character to white and then press enter again; this results in the desired space between lines without having to edit the theme. The same applies to extra spaces in a line; enter as many characters as desired, highlight them and change their font colour to white and then carry on in the desired font colour.

  21. Christy says

    THANK YOU!! I Love you guys! So glad I found this site! I’ve almost literally been banging my head against the wall. If I knew how to insert emojis, this post would be covered with hearts and smiley faces. :-)

  22. Linda Paul says

    Oh yeah! You have just helped me solve a problem (forced single space paragraphs) that has vexed me for years!

  23. David M. Ebersole Sr. says

    I am a subscriber to WP Beginner.
    I had a question concerning entering Engineering data for my product on my site. Spacing in the tables appeared too large on the page. I searched WordPress support and all I saw was snippy responses to the question of single line spacing.

    Your the first to answer the question, and it obviously was correct. Thank You.

    Sincerely,

    Dave

  24. Mark says

    What about on Android. The latest update has forced a double spacing (new paragraph). Not very good for poetry writers. Is there any way to revert it back to single?

  25. Cheryl says

    I use Omega Theme and the control/enter does not work. Is there something else I can do. I cannot find post.p in the CSS file.

  26. Tina Gleisner says

    Thanks for the „shift“ and enter for single line spacing as I’ve wanted to figure this out for years … and never got around to finding the solution.

  27. A. Lougheed says

    I’m searching everywhere for an answer … when I add a in the text editor, it is removed in the visual editor. Drives me crazy. Does wpbeginner have a recommendation?

    Should I add a plug-in to stop this?

    I tried a plugin years ago, but I had to go back and re-format every post.

    Any link with tutorial or advice is greatly appreciated!

Eine Antwort hinterlassen

Danke, dass du einen Kommentar hinterlassen möchtest. Bitte beachte, dass alle Kommentare nach unseren kommentarpolitik moderiert werden und deine E-Mail-Adresse NICHT veröffentlicht wird. Bitte verwende KEINE Schlüsselwörter im Namensfeld. Lass uns ein persönliches und sinnvolles Gespräch führen.