Categories
Code Snippets WordPress

Change the “Related” Headline in Jetpack’s Related Posts Feature

A quick code snippet that changes the default “Related” headline in Jetpack’s Related Posts feature.
function kraft_related_posts_headline( $headline ) {
$headline = sprintf(
				'<h3 class="jp-relatedposts-headline"><em>%s</em></h3>',
				esc_html( 'Other Things You Should Read' )
			);
return $headline;
}
add_filter( 'jetpack_relatedposts_filter_headline', 'kraft_related_posts_headline' );

Easy way to switch out the “Related” header that is in the Related Posts module in Jetpack 2.9+.

By <span class='p-author h-card'>Brandon Kraft</span>

My life is an open-source book.

Leave a Reply

Brandon Kraft">Brandon Kraft</a></small></blockquote>">