X Features Cars Demo Power Plants Demo State Parks Demo Site Showcase Docs Tutorials Add-ons Buy

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