• Resolved mbrailer

    (@mbrailer)


    I would like for the Posts Block to display a different message when there are no posts. Currently the message is “No posts”.

    I can change this within the file class-kadence-blocks-posts-block.php but of course this is not the best way. Is there a hook that will let me change the output?

Viewing 1 replies (of 1 total)
  • Thread Starter mbrailer

    (@mbrailer)

    Never mind, found some code:

    add_filter( 'kadence_blocks_posts_empty_query', function( $no_results_html ) {
    $no_results_html = 'no result message here';

    return $no_results_html;
    }, 10 );

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.