Archived topic
2 column blog layout and generate after main content
7 replies · Started by Tom on June 3, 2022
I'm using a 2 column blog layout set in the GP pro customizer "layout" options.
I'm also using a element and hook that adds a block with text and a button using the "generate after main content" hook. This is set to display on category and tag archives.
If there's an even number of posts in the blog layout output, everything is fine. The element block sits below the blog layout.
However, if there's an odd number of posts, then a blank right column is left over on the in the blog layout.
The problem is this. If there's an odd number of posts, any hook element for generate after main content then fills this leftover right column in the blog layout, instead of sitting neatly below the blog layout. See the highlighted area on the screenshot in the private area.
How can I ensure the generate after main content sits underneath the blog layout as described above?
Thanks.
Hi there,
Any chance you can provide an example of each case so I can compare the differences?
Thanks :)
Screenshots in private area.
Any chance you provide the live links of both cases so I can compare the code?
Thanks.
Sorry, it's a localhost dev site.
Any chance you can start a staging site for us to see?
If not, is this using a block element with GenerateBlocks?
Sorry, it's a local site, not a staging site.
The block used is a regular paragraph block.
Sorry, it’s a local site, not a staging site.
I understand. But any chance you can start a staging site so we can try to provide some suggestions?
Or we can revisit this once the site is live.
It's very difficult to provide suggestions with screenshots only.
Thank you for your understanding.