Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Add a custom class to the post Reply To: Add a custom class to the post

#10125
Tom
Keymaster

Hi Ben,

WPSP uses the standard post_class() function add classes to posts, so you can do this:

add_filter( 'post_class', function( $classes ) {
    $classes[] = 'mix';

    return $classes;
} );

Let me know if you need more info 🙂