Skip to content

Instantly share code, notes, and snippets.

@MariaJackson1
Last active August 8, 2022 21:16
Show Gist options
  • Select an option

  • Save MariaJackson1/5c5cadd2a0d7e864094d39bdfa3e797b to your computer and use it in GitHub Desktop.

Select an option

Save MariaJackson1/5c5cadd2a0d7e864094d39bdfa3e797b to your computer and use it in GitHub Desktop.
Remove "Month:" Blog Archive Title
Add to functions.php
add_filter( 'get_the_archive_title', 'tu_remove_month_archive_title' );
function tu_remove_month_archive_title( $title ) {
if ( is_month() ) {
$title = get_the_date( 'F Y' );
}
return $title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment