Additional CSS classes ready to use in your Gutenberg blocks

Astratic theme includes a set of CSS classes that will help you to make some extra adjustments or changes while building any kind of custom layout (for example landing page). These classes are very easy to use and can be applied in different elements like Gutenberg blocks. Its purpose is to help more advanced users to perform little tweaks right in the content editor, so it’s not necessary to edit the source code on the served.

To use such class in a block you need to navigate to Settings sidebar (check the screenshot below) and then open the Advanced tab.

wordpress gutenberg block custom css class

Custom CSS classes

* Available if you use Astratic theme

Applicable to all blocks

*Please note that disabling top or bottom margin in one block doesn’t mean that a free white space will disappear. To remove it do the same with upper/lower block too.

Block Columns

Block Group

Block Cover

wordpress menu css class gutenberg

These classes can only be used in menu items setting. Navigate to Appearance > Menu and then use the Screen Options tab at the top of the page. Make sure Show advanced menu properties > CSS Classes checkbox is checked. Then you should see CSS Classes input whenever you edit or create new menu item.

If anything in the list is unclear, please – let us know! We are here to help 🙂

Need help?

Thank you!

We will answer to your message as soon as possible

Need help? support-icon