Archived topic
404 page content cutting off on the left side
3 replies · Started by wickedonline on February 27, 2022
I'm not sure why this is happening but the text on the 404 page is getting cut off on desktop. It's going too far to the left. Can you please tell me how I can center align everything on the 404 page so we don't have this issue? Thanks
Hi there,
Do you have any custom functions on your site as the 404 page shouldn’t have the columns container. The 404 page have a columns container is the reason why it’s moving to the left/has a left margin.
If you don’t have one, this may be similar to a current issue we’re tackling. I’ll inform Tom if so.
For now, here is a CSS code you may add as a workaround:
body.error404 .generate-columns-container {
margin-left: 0;
}
Kindly let us know. Hope this helps! :)
I have custom functions but not for the 404 page.
To rule out if one of these functions is a potential cause for the occurrence of this issue, is it okay if you temporarily remove these functions to see if the issue will persists?
If the issue disappears, then we can conclude that one of these functions is causing this.
On a side note, here is another workaround provided by Tom: https://generatepress.com/forums/topic/masonry-grid-for-blog-and-404-page/#post-1822266
Kindly let us know how it goes. :)