Skip to content

Instantly share code, notes, and snippets.

@mgibbs189
Created May 28, 2019 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgibbs189/4bd51dc3ac37d4570ac5e0aca4f7ed00 to your computer and use it in GitHub Desktop.
Save mgibbs189/4bd51dc3ac37d4570ac5e0aca4f7ed00 to your computer and use it in GitHub Desktop.
Bootstrap - combine "facetwp-template" with ".row"
<?php
add_filter( 'facetwp_shortcode_html', function( $output, $atts ) {
if ( isset( $atts['template'] ) ) {
$output = str_replace( 'facetwp-template', 'facetwp-template row', $output );
}
return $output;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment