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

Wie man den Fehler „Seitenleiste unter dem Inhalt“ in WordPress behebt

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 den Fehler „Seitenleiste unter dem Inhalt“ in WordPress beheben?

Dieses Problem kann auftreten, wenn WordPress-Vorlagen ein zweispaltiges Layout für den Inhalt und eine Seitenleiste verwenden. Aufgrund einer geringfügigen Änderung im Code wird die Seitenleiste unter dem Inhalt statt daneben angezeigt.

In diesem Artikel zeigen wir Ihnen, wie Sie den Fehler „Seitenleiste unter dem Inhalt“ in WordPress leicht beheben können.

Fixing the sidebar below content editor issue

Was ist die Ursache für das Problem der Seitenleiste unter dem Inhalt in WordPress?

Die häufigste Ursache dafür, dass die Seitenleiste unterhalb des Inhalts erscheint, ist ein HTML- oder CSS-Fehler, der das Layout stört.

Jedes <div> in HTML muss ordnungsgemäß geschlossen werden. Wenn die Vorlage, die für die Anzeige der Seite verantwortlich ist, ein nicht geschlossenes <div>-Tag enthält, wird das Layout zerstört.

Closing all divs in WordPress theme layout

Ebenso kann ein unerwünschtes schließendes </div>-Tag das Layout beeinträchtigen und dazu führen, dass die Seitenleiste nach unten verschoben wird.

Neben HTML wirkt sich CSS auch auf das Gesamtdesign jedes Elements auf Ihrer WordPress-Website aus. Es wird verwendet, um die Breite, die Ausrichtung und das Floating von Elementen in Ihrem Layout zu definieren.

Einfach ausgedrückt: Wenn die Breite Ihres Inhaltsbereichs größer ist als der verfügbare Platz, wird die Seitenleiste nach unten verschoben.

Sidebar below content area

Zunächst müssen Sie herausfinden, welcher Code in WordPress das Problem mit der Seitenleiste unterhalb des Inhalts verursacht.

Schauen wir uns also an, wie man den Fehler „Seitenleiste unter dem Inhalt“ in WordPress leicht beheben kann. Sie können diese schnellen Links verwenden, um zu einer bestimmten Lösung für die Fehlerbehebung zu springen:

Methode 1: Rückgängig machen der letzten Änderungen an Ihrem WordPress-Theme

In der Regel wird das Problem durch Änderungen in Ihren WordPress-Theme-Dateien verursacht.

Wenn Sie kürzlich Änderungen an Ihrem WordPress-Theme oder Child-Theme vorgenommen haben, können Sie diesen Fehler schnell beheben, indem Sie die Änderungen überprüfen.

Wenn Sie nicht herausfinden können, welche Änderungen Sie rückgängig machen müssen, dann lesen Sie weiter, und wir zeigen Ihnen andere Möglichkeiten zur Fehlerbehebung.

Methode 2: WordPress-Plugins ausschließen

Das Aussehen und der Stil Ihrer WordPress-Website werden durch das von Ihnen verwendete Theme gesteuert. Manchmal fügen WordPress-Plugins jedoch auch ihr eigenes HTML und CSS zu Ihrer Website hinzu.

Wenn Sie beispielsweise ein Kontaktformular auf einer Seite oder ein Leuchtkasten-Popup hinzufügen, wird zusätzliches CSS und HTML geladen.

Um sicherzustellen, dass das Problem nicht durch ein WordPress-Plugin verursacht wird, können Sie vorübergehend alle WordPress-Plugins auf Ihrer Website deaktivieren.

Gehen Sie dazu in Ihrem WordPress-Admin-Dashboard auf Plugins “ Installierte Plugins und aktivieren Sie das Kästchen neben „Plugin“ am Anfang der Liste. Öffnen Sie dann das Dropdown-Menü, wählen Sie „Deaktivieren“ und klicken Sie auf „Übernehmen“.

Deactivate all WordPress plugins

Wenn das Problem verschwindet, bedeutet dies, dass ein Plugin das Problem verursacht hat. Aktivieren Sie einfach alle Ihre WordPress-Plugins nacheinander und überprüfen Sie Ihre Website nach jedem Plugin, um herauszufinden, welches das Problem verursacht.

Danach können Sie sich an den Support des Plugins wenden, um eine Lösung zu finden und das Problem zu melden.

Eine ausführliche Anleitung finden Sie in unseren Tutorials zur einfachen Deaktivierung von WordPress-Plugins und zur Deaktivierung von Plugins, wenn Sie keinen Zugriff auf den WordPress-Adminbereich haben.

Methode 3: Finden Sie die HTML-Tags, die das Layout unterbrechen

Wie bereits erwähnt, ist ein defektes <div>-Tag eine der häufigsten Ursachen dafür, dass sich die Seitenleiste unter den Inhalt bewegt.

Wenn das Problem in einem bestimmten Bereich Ihrer Website auftritt, können Sie die Vorlage überprüfen, die für die Anzeige des Codes verantwortlich ist.

Wenn das Problem beispielsweise nur bei einzelnen Beiträgen auftritt, sollten Sie das Template single.php überprüfen. Um herauszufinden, welche Vorlage Sie überprüfen müssen, lesen Sie unseren vollständigen WordPress-Vorlagenhierarchie-Spickzettel.

Der einfachste Weg, ein nicht geschlossenes div-Element schnell zu finden, ist die Verwendung des W3C-Validator-Tools.

Using HTML Validator tool

Sie können auch das Inspect-Tool oder Code-Editor-Apps verwenden, die Ihnen beim Debuggen von Code helfen, indem sie die Start- und End-Tags von Elementen hervorheben.

Hier ist ein Beispiel für die Hervorhebung der Start- und End-Tags eines Elements:

Debugging HTML error using a code editor

Wenn Sie sich den Code ansehen, müssen Sie darauf achten, dass jedes <div>-Tag, das geöffnet wird, auch ein schließendes </div>-Tag hat.

Ebenso sollten Sie nach einem verwaisten schließenden </div>-Tag suchen, das kein entsprechendes offenes <div>-Tag hat.

Wenn Sie den fehlerhaften HTML-Code gefunden haben, können Sie das Problem mit der Seitenleiste unter dem Inhalt lösen, indem Sie sie reparieren.

Methode 4: Finden Sie das CSS, das die Seitenleiste unter den Inhalt verschiebt

CSS steuert die wichtigsten Aspekte des Designs Ihrer Website. Ihr WordPress-Theme verwendet CSS, um die Breite des Inhalts und der Seitenleistenbereiche innerhalb eines Rasterlayouts zu definieren.

Dieser Wert gibt den Prozentsatz des verfügbaren Anzeigebereichs an. Auf mobilen Geräten schiebt Ihr Thema die Seitenleiste automatisch nach unten unter den Inhalt.

Um herauszufinden, welches CSS das Problem verursacht, können Sie das Tool Inspect verwenden. Wenn Sie Ihren Inhalt einfach in das Wrapper-Feld, den Inhaltsbereich und die Seitenleiste verschieben, werden Ihnen die Breite und Höhe angezeigt.

Check CSS width issues

Wenn Ihr Inhaltsbereich beispielsweise 70 % breit ist und der Seitenleistenbereich 33 % beträgt, wird er automatisch nach unten verschoben. Bei der Berechnung dieser Werte sollten Sie auch den Platz berücksichtigen, der durch die Auffüllungs- und Randwerte in den einzelnen Abschnitten belegt wird.

Methode 5: Löschen Sie den WordPress-Cache

Website not updating

Wenn Sie immer noch die Seitenleiste unterhalb des Inhaltsbereichs sehen, sollten Sie den WordPress-Cache leeren.

Wenn Sie Änderungen vornehmen , die nicht sofort angezeigt werden, liegt das oft an Caching-Problemen.

Es ist üblich, dass Caching-Plugins eine ältere Version der gleichen Seite anzeigen. Wenn Sie den WordPress-Cache und den Browser-Cache leeren, können Sie die auf Ihre Website angewandten Änderungen sehen.

Wir hoffen, dass dieser Artikel Ihnen geholfen hat zu lernen, wie Sie den Fehler mit der Seitenleiste unter dem Inhalt in WordPress beheben können. Vielleicht möchten Sie auch unser ultimatives Handbuch der häufigsten WordPress-Fehler und unseren Artikel über die Anzeige verschiedener Seitenleisten für jeden WordPress-Beitrag und jede Seite lesen.

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

41 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. Gina Detwiler says

    I’m not certain how to find that div element. Can you elaborate a bit? I’ve had this problem from the beginning with my site and don’t know how to fix it.

  3. Shai says

    Thank you so much!
    You just saved me a lot of time trying to resolve it.
    As you said I had an extra div element closed

  4. Dale Jennings says

    I am trying to put my current posts on the left and recent posts in a right sidebar and the sidebar is down at the bottom of the page, also it is too wide, and I do not understand what you were talking about since I am new to this. what is an easy fix?Or is there one?

  5. Ayla says

    I’m having the issue where my sidebar is showing up on the bottom of every page. I am not very savy with this so have not done anything fancy other than transfer my domain from google recently. I have been building the site in wordpress and did not have any issues until I changed the theme. I tried the instructions above but couldn’t find any of those things.

    • WPBeginner Support says

      Hi Ayla,

      Try switching temporarily to your previous theme or a default theme. If this resolves the issue, then the issue is with your theme. Try reaching out to theme developer to see if they can help you fix that.

      Admin

  6. Donald Efiom says

    I have the same problem right now and I can’t seem to find where to edit the HTML of the shop page im diaplayin products using the wcommerce plugin. When I inspect element on my browse, I can debug the error and correct it but in my actual root directory, I can’t find the page that holds the HTML of the shop page of woocommerce that I can edit. Pls help!

  7. Maria Appleby says

    For the life of me I cannot fix my sidebar issue. I searched for open blocks. I removed one blog post that was wonky with HTML due to me copying content. I tried a different theme. I took off my widgets (and then tried to add one to see what would happen – the „follow blog“ button“ – still on the bottom). I tried the validator but don’t really understand what it is telling me. When I entered different blog post urls, I got the same error messages. I’m sorry I sound so stupid….I’ve had the blog a long time, but only recently started adding a lot of content, and I don’t really know what I’m doing yet. THe sidebar ended up from the right side, to the bottom of the blog, very recently (past couple of days). Can you help me?

  8. Sparsh Goyal says

    I have same problem but unable to solve it. Only my home page have this problem. Post-type page and Page-type page are working well. My home page sidebar is going on top rather than going just next to my content. Can you please check what is going wrong in my website. My site is coasilat.com

  9. Sly says

    Hi, I’m a beginner. I don’t know ANYTHING about CSS or HTML code, I don’t edit my theme, I have no child theme. I only add plugins for whatever I need to do. I see to be having the issue with ALL MY BLOG POST PAGES. The sidebar is below the blog posts. I have no idea what is a div and how to fix it. Dear pros, what would be the best way for my to solve this sidebar issue?

    • Tamara says

      I’m a beginner and not a coder either, but was able to solve this problem by using the W3 Validator link on this page. At the top of the validator, under Options, I checked all available then entered the web address of my blog and ran the validator. Below a numbered list of errors was a very detailed (and intimidating, but hang in there) display of the errors as they’re located within the text of my blog. I focused on the mentioned in this article. Scrolling through the detailed report, I found one error that was highlighted in red. Since my text was displayed, I could see that it was in one of my blog posts just after an internet link I’d inserted. I went to that blog post on the WordPress dashboard, clicked „edit“ and deleted the link. (Holding down „delete“ to be sure I got any invisible anything that might be there and backspacing a couple of letters for the same reason. I then saved the blog post. My webpage was fixed! I then re-edited the blog post to add back in the link and all remained fine. Problem solved.

  10. Lisa W Boyle says

    Thank you I was able to immediately find and fix the problem based on your instructions. I found I placed and extra in my single.php file. Your a live saver, thank you so much!

  11. Roney Oenophile says

    I dont know what wrong I did, pls help me. I was editing text and I accidentally pressed a combination of keys which changed the way it looked. few buttons like full screen is missing now. And the publishing button is moved to left side. And the pic that I uploaded with the post moved upside my content and it is very big now. I don’t know how it happened, I don’t know what is the problem. I am not computer friendly. I usually write posts. Pls help me. The address of my page is wordpress.com

  12. Danielle says

    First time taking over updating of our site…tried to update the static home page and somehow my sidebar went to the bottom. I can’t see any or tags….help! I don’t want to tell the person i took over from i already screwed up if i can figure out what i did!

  13. Leah says

    This is happening to me right now every time I try out a new theme. Only one widget stays on the sidebar and the rest goes to the bottom of the content. But when I go back to my current theme, everything looks okay. I still can’t figure it out. :P

  14. Amy says

    Thank you for this post. I am trying to fix this problem on my website right now. I tried everything mentioned in this post, but I still am having issues. I know a little about websites, but I am at a total loss as to why my top navigation bar is going onto 2 lines and why my sidebar is being pushed to the bottom. My website is not live yet, but here is the website

    Thank you for any help!!

  15. sean says

    Similar problem with my bespoke blog inside my website; side bar slips under the footer if there isn’t enough content to push it down.

    I found that removing (or safer, commenting out) the following sorted the problem:

    I don’t know what this empty div is for & so far it hasn’t adversely affected the blog. Another more obvious reason is due to divs without closing tags – it’s a bit harder to keep track of all your open/closed div tags in WP as the footer & header are removed unlike a standard HTML site.

    • Sean says

      Er, that is commenting out the empty „delimiter“ div at the bottom of various WP pages – it disappeared from my original comment!

  16. Cecilia says

    I have this problem and I can’t solve it (I’ve been trying for several days)

    Here is my site:

    Please, I really need help. Thanks!!!! =)

  17. kathy says

    Since most themes have the proper CSS, I find this is almost always a problem of improperly closed HTML. Usually it occurs on a specific page, because the user has tried to add her own HTML in the post editor and things went wonky from there. Simple error, but can take a long time to debug.

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.