Beta 9: Using a Global Block for a Blog Layout

Hello,

I achieved a successful blog layout building elements on their own within a column and it looks like this:

I then took the contents of the column which laid all this out, and inserted them into a global block.

I then replaced the individual elements with the global block - that would give me a simple re-usable blog grid cell.

Here’s the result:

  • The green bit is the background of the column containing the global block
  • The pink bit is the background of the Global block itself
  • The GB is pushed down for some reason - there’s no padding or margin for the column in green

And finally, here’s how the Global Block looks in the editor - the styling of the excerpt text isn’t right - taking it from the blog title.

Thanks, Bill.

Hi Bill,

Regretfully, I’m not sure we’ll be able to support that type of arrangement. When a Global Block is used, it actually renders inside of its own query kind of like a page. So we lose the context of the main WordPress loop from the archive mode and it doesn’t really know how to find the correct data anymore.

I’ll think about it some more and might be able to make some adjustments if anything comes to mind. I definitely see the use case and why it would be nice if this could work.

1 Like