Hi, @lauratraveler!
You can go to our knowledgebase article for custom code snippets you can use -https://www.kadencewp.com/kadence-theme/knowledge-base/advanced/changing-various-heading-html-tags/.
So to show text like, “Similar Posts under Category name”, you can edit the code snippet from the article to:
/**
* Change the similar posts title output.
*
* @param string $html the output html.
*/
function custom_similar_posts_title( $html ) {
$categories = get_the_category();
$html = '<h4 class="entry-related-title">' . esc_html__( 'Similar Posts under ', 'custom-text-domain' ) . esc_html( $categories[0]->name ) .'</h4>';
return $html;
}
add_filter( 'kadence_single_post_similar_posts_title', 'custom_similar_posts_title' );
However, since a post could have multiple categories, the code above will only show the first category returned by the function.
I hope this helps and let us know if we can assist you further.
Regards,
Karla