-
naneadmin
I hate asking beginner’s questions, but I really get frustrated because I do obviously not understand the basics, sorry.
I have read your documentation for hours now, but I am still stuck with the front page.
Can you give me a quick hint, what is going wrong here? What do I have to look at?
(There is still some content of your starter site “clinical”)https://staging2.narkolepsie-netzwerk.de/
+ Why is the menu on the left?
+ Why is the button “Zu unseren Veranstaltungen” on the right?
+ Why is the container as small as about 700px, although I checked fullwidth?
+ Look at the part “What our patients say”: What is going on here?
+ And, the same is happening at “Letzte Nachrichten” -
Alvind
Hi there,
I checked the page and there’s a WordPress critical error being printed at the bottom of the frontend output:
https://cln.sh/SDTjZFM1gxZC9qym8FJqThat error output is adding this CSS globally:
body { max-width: 700px; margin: 2em auto; padding: 1em 2em; }So even though the Home page is set to Full Width, that error CSS is being loaded later and overriding the page layout. This is why the whole page is being squeezed down to around 700px, and why sections like “What our patients say” and “Letzte Nachrichten” look broken.
To answer your questions:
– The menu is on the left because the navigation alignment is currently set to left in the Customize > Layout > Primary Navigation
– The “Zu unseren Veranstaltungen” button is being added by a GP Element called Button – Menu Veranstaltungen, hooked into generate_menu_bar_items.
– The narrow container is caused by the critical error CSS, not by the Full Width setting.
– The “What our patients say” section is still leftover Clinic Starter Site content, and it’s being affected by the same injected error CSS.
– “Letzte Nachrichten” is also being affected by the same issue.
The next step is to fix the PHP/WordPress critical error first. Once that error is resolved, the page should stop being forced into the 700px error layout, and then we can adjust the navigation alignment and button placement normally.
To troubleshoot this, try temporarily deactivating all plugins except GP Premium and GenerateBlocks. This will help confirm whether one of the other plugins is causing the critical error.
-
naneadmin
My gosh,
thanks you figured that out.I noticed the critical error but I attached no importance to that as I couldn’t imagine it can crash the layout.
I used this max-width in my former theme, but I always used child themes, so I did’t see it could make trouble anylonger.
Well I had a theme editor, also, so… this was bad.
I still search for the peace of code which manipulates the landing page.
Your input helped so much.
Thank you.
-
Alvind
No problem, glad to hear that 🙂
- You must be logged in to reply to this topic.