Site logo

Archived topic

Default Unsemantic Classes

6 replies · Started by Ahmed on January 6, 2023

Viewing posts 1–7 of 7

Hi,
I'm trying to use the default css grid classes provided by unsemantic on a custom template, but it seems that those classes are missing from my main CSS file. For ex. I would like to use "grid-50" but it doesn't work because the class is not defined.

What's the best way to include the entire grid system?

Thanks!

Thanks Fernando! How can I get that layout transferred to a custom php template file?

What's your template file for? Is it for archive pages or a single post or something else?

And, where in this template are you adding a Grid?

Perhaps you can simply add an action hook, and hook a Block Element there.

Yes, it's a single post for a custom plugin. I guess I can build a page template and then use the same grid pattern in the custom file.

Ok, that's not going to work because using the block builder adds a lot of inline styling for positioning, margins, etc. How can I get access to the Unsemantic utility classes like class="grid-25", class="grid-25 mobile-grid-50", etc. on a single post and archive page?

Thanks!

This archived topic is closed to new replies.