How Do I Add a Class to a Block in WordPress?

Adding a class to a block in WordPress is simple. First, locate the block you want to add the class to. Next, open the block’s settings. Under the “Appearance” tab, click on the “Class” tab.

In the “Class” tab, locate the class you want to add, and click on the “Add” button. In the “Select Class” dialog box, locate the class file you downloaded, and click on the “Open” button. In the “Class” dialog box, type in the class name, and click on the “Add” button. Click on the “Save” button, and your class is added to the block.