Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"Related Posts" - change title to custom title - Add this in Astra child theme's functions.php file
add_filter( 'astra_related_posts_title', 'astra_change_related_posts_title' );
function astra_change_related_posts_title( $title ) {
$custom_title = 'Your Custom Title';
return str_replace( 'Related Posts', $custom_title, $title );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment