Archived topic
Wrong margins on 404 with archive columns
8 replies · Started by Gabriel on February 22, 2022
I have enabled display content in columns in Layout > Blog > Archive. With this settings enabled there is this style that throws the box with the search box out of place:
.generate-columns-container {
margin-left: -32px;
}
Added a plain GP installation to private information.
Hi there,
do you have any custom functions on the site ? As the 404 page shouldn't have the columns container.
No it is a default installation with no other customizations. That is why I think that this is a bug in GP.
Forgot to mention that the issue is more visible if you resize the window to about 850px wide.
I have only seen this happen once before, and we done multiple tests and could not replicate the issue - here is the other user who had the same issue and Tom provides a PHP snippet to fix that:
https://generatepress.com/forums/topic/masonry-grid-for-blog-and-404-page/#post-1822266
Thanks. Added the workaround to the child theme I use in the real site and it works. Do you want access or a backup copy of the site I mentioned in OP to investigate further?
Do you have a staging site where can poke around? It would definitely be helpful if possible :)
Thanks!
Created an admin account for you on a test site where I also have this bug. See private information.
Looked over this a couple of times but I can't find what's causing it. Even if I copy your settings I'm not able to replicate it on my end.
I'll keep trying on my end, and for the now the solution you're using is a solid solution to the problem.
Thanks!