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;
}
Related Posts
- Prepare Genesis Framework to use with CSS Grid
- Fix: FacetWP not Working With Relevanssi
- Use FacetWP with the Astra Theme
- Use Google Fonts Locally With GeneratePress
- Laravel - fix "1071 Specified key was too long; max key length is 1000" error
- Always show "Read more" when using GeneratePress
- Fix WordPress Subfolder 404 Errors When Using Laravel Forge