Created
May 1, 2021 07:51
-
-
Save premanshup/c848b7c30c376928a6316704a290cf02 to your computer and use it in GitHub Desktop.
"Related Posts" - change title to custom title - Add this in Astra child theme's functions.php file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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