→ Integrating FacetWP with Genesis

If you’re trying to integrate FacetWP with the Genesis Framework using the CSS class approach, it’s not always obvious what to change.

To add FacetWP’s required CSS class, simply add this code to your theme:

function custom_facetwp_class( $atts ) {
    $atts['class'] .= ' facetwp-template';
    return $atts;
}
add_filter( 'genesis_attr_content', 'custom_facetwp_class' );

Code courtesy of Mike Hemburger via Snip2Code