Filter: bricks/query/no_results_content
You can programmatically change the query loop “no results content” using this filter.
add_filter( 'bricks/query/no_results_content', function( $content, $settings, $element_id ) {
// Check if the query element id is the one you want if( $element_id !== 'srixvr' ) return $content;
// Use a bricks section template as the no results content $content = do_shortcode('[bricks_template id="3981"]');
return $content;}, 10, 3 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.