If you’re trying to integrate FacetWP with the Genesis Framework using the CSS class approach, you need to add the facetwp-template class to a container element surrounding your post loop.

The following snippet adds the class to the Genesis “content” element:

How to use custom PHP code?

PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More info

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

See also

Last updated: August 5, 2024