EB looses ALL styling if you have no posts
-
Hello,
I have encountered this problem on two sites, I managed to fix it so I attach links to screenshots of how it looked with the problem unsolved. However, the problem is critical – I tried to find solution for two days while the client’s website was unusable.
At some point in time my page suddenly lost all styling made in the editor (it’s a one-page layout, everything is edited in full site editor). If you inspect the website you can see that there is no EB stylesheet from eb-style folder linked to any of the elements.
The stylesheet didn’t go anywhere, it is still in its place. I was working normally on the backend of the website, I guess the last thing I changed before it lost the styling was removing the default “Hello World” post – I am not using posts anywhere on the page – only static content from full site editor so I decided to remove this one post because spam crawlers try yo add comments to such posts if only the posts are available through direct links (so – if they’re published).
What’s more interesting – in the editor (FSE) I still can see the website styled as it should look!
However! The published website looks fine only if you have at least one published post (for example – the default “Hello World” one but it can be anything, it can be an empty post but it must be published). If I have this post and it is published (even though it is not visible anywhere on the page!) the website looks like it should. If I remove the only post or it is a draft (not published) I end up with this monstrosity:
View post on imgur.com
On imgur you can find the screenshot of the crashed website (with the only post removed from wordpress) and screenshots showing what is the difference in stylesheets on the crashed and non-crashed website.
On the crashed website the uploads/eb-style stylesheet is also absent in the Sources window of website inspector (Chrome browser) so I guess it isn’t linked to the website content at all. However, there aren’t any errors logged in the website console.
TL;DR:
There must be at least one published post in WordPress, otherwise Essential Blocks is crashing and loosing all styling.The page I need help with: [log in to see the link]
- The topic ‘EB looses ALL styling if you have no posts’ is closed to new replies.