How Do I Add a Custom CSS Class in WordPress?

Adding a custom CSS class in WordPress is as simple as adding a class name to the appropriate place in your theme’s style.css file. Here’s a guide on how to do it:

1. Open your WordPress theme’s style.

css file in your text editor of choice.

2. Add a new class name to the file, for example “my-custom-class”.

3. Add the following code to the class’s definition:

.my-custom-class {

font-weight: bold;

}

4. Save the file and you’re done! The new class will be applied to all elements that have the my-custom-class class name attached to them.