Hi there,
for for now, the best method is to create another Block Element to contain your custom No Post Founds message. You can use a Page Hero or any Hook element. Set the Display Rules to match those of your Content Template.
Make a note of its post ID ( in the Browser URL when editing the post ) and the ID of the content template.
Then use the following PHP snippet to hide your custom no post element when we have posts, and hide the content template when we don’t have post:
add_filter( 'generate_element_display', function( $display, $element_id ) {
if ( 123 === $element_id && have_posts() ) {
$display = false;
}
if ( 456 === $element_id && ! have_posts() ) {
$display = false;
}
return $display;
}, 10, 2 );
123
change this to the ID of your custom no post element.
456
change this to the ID of your Content Template.