Site logo

Archived topic

css framework

3 replies · Started by Victor on October 21, 2021

Viewing posts 1–4 of 4

I do not identify the css framework the theme use. I have try to add unsemantic classes but I don't see they are used.

Thanks

Hi there,

we stopped using the unsemantic grid framework in GP 3.0 and use CSS Flex box for the themes grid requirements.
Personally i wouldn't use it today, but you can add the unsemantic framework for your code. But with the Block Editor i would suggest using the GenerateBlocks plugin and its Grid Block.

Ok, thanks. In this case I'm building another template for a cpt with a different custom layout. So I needed to code a special design. Or can I include a template with variables inside an element?

Depending on what you want to do with the CPT layout, you could use a Block Element - Content Template:

https://docs.generatepress.com/article/block-element-content-template/

The example provided is for the post archive, but you can construct them for single posts.

The caveat is you would need to use a copy of the themes single template to build your CPT template as it contains the necessary generate_do_template_part function - see here:

https://github.com/tomusborne/generatepress/blob/2c7c8a76d3b58b0b97e82b3a7a5ebf022a1ddfbe/single.php#L29

This archived topic is closed to new replies.