
How to Add Multiple CSS Classes in WordPress
CSS play an important role in UI/UX Today we will learn how to add multiple CSS classes using WordPress function. We can design each WordPress post differently using the respective CSS classes. STEP I:- We have to first define the classes as an array in the functions.php file under the child-theme folder. Let see how we define, it’s very simple. Classes names are (long-form-article, featured-story, interactive) for a single Div tag. STEP II:- After defining classes in the functions.php file under the child-theme folder. We have to now call them in the post_class function in Div tag. Let see how it