Tag: post_class
-
Add a class to the post_class()
In WordPress, you can definitely tack on extra classes to the post_class() function right in your template files. It’s super handy for styling your posts differently or adding some JavaScript functionality later on. You just need to pass the additional classes as an argument to the post_class() function. You can do it like this: If…