Site logo

Archived topic

Layout design classes in GeneratePress and GenerateBlocks

3 replies · Started by Daniel on August 11, 2022

Viewing posts 1–4 of 4

Hello

For a website I am developing I need to create layout page templates directly in the php file without using Gutenberg.

Before, GP was using unsemantic, so I could use the classes of that grid system for layout. Now, especially since the appearance of GB, I don't know if GP has switched to another system for layout, or if GB adds some classes of its own that could be used for layout.

If I could indeed use the GB classes to layout my page, is there any reference manual where I can know those classes used by GB?

Thanks!
Daniel

Hi there,

grid layout classes are no longer a thing in GP and are not a thing in GB either.
They both use Flexbox and the CSS for that is dynamically generated.

How many layouts will there be ? As it may be simpler just to write some custom css or couple of utility classes.

Hi Dave, and thanks for your reply.

According to your answer, the best thing to do is what you propose and write some custom css for what I need.

Thanks!

Thats correct :)

Let us know if you need any assistance with that.

This archived topic is closed to new replies.