The Additional CSS Classes field lets you apply an existing CSS class to a Gutenberg block without editing its HTML manually. section 7.7
To add a class in Gutenberg:
- Select the block you want to style. section 7.7
- Open the three-dot menu, choose the Block tab, and expand Advanced. section 7.7
- Type the class name into Additional CSS Class(es), without the leading period. section 7.7
Example
If the class is greensans, enter greensans—not .greensans. WordPress adds the class= attribute to the block’s HTML. section 7.7
Figure 7.13 You can apply classes to a block using Gutenberg’s Additional CSS Class(es) field.
Use the figure to identify the Additional CSS Class(es) field in Gutenberg’s block settings. section 7.7
