Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Add class to wp-show-posts-single Reply To: Add class to wp-show-posts-single

#6722
Tom
Keymaster

Should definitely be possible.

Try this:

add_filter( 'wpsp_settings', function( $settings ) {
    if ( 123 === $settings['list_id'] ) {
        $settings['inner_wrapper_class'][] = 'custom-class';
    }

    return $settings;
} );

You’ll need to change 123 to the list ID you’re targeting.