Use FacetWP in Combination With Genesis Framework

If you want to use FacetWP in combination with the Genesis framework, use this snippet to add the required CSS class:

// Add required class for facetwp
add_filter( 'genesis_attr_content', 'wpkb_attributes_content' );
function wpkb_attributes_content( $attributes ) {
    if ( is_home() || is_archive() || is_search() ) {
        $attributes['class'] .= ' facetwp-template';
    }
    return $attributes;
}