Thoughts On Web Design

Change Wordpress Archive Title

Change Wordpress Archive Title

In this post we are going to change the default WordPress title for the Archive page. p

1. Adjust as needed and add the following code to your theme's functions.php file.

function change_archive_title($title, $original_title, $prefix) {
if (is_archive()) {

// Change 'Monthly Archives: %s' to what you want the title to say
$title = sprintf( __( 'Monthly Archives: %s', 'textdomain' ), $original_title );
}
return $title;
}
add_filter( 'get_the_archive_title', 'change_archive_title', 10, 3 );

THANKS FOR READING
Thank you for reading Change Wordpress Archive Title. I hope you enjoyed it. You can give me feedback, say hi or yell at me on twitter.com/beuinteractive.


Apr 01, 2024 Filed under WordPress

Reading

The Maltese Falcon

Life and Death in The Andes

Ender's Game

War and Peace

Dune

Brewing Up A Business

Latest Tweets


Follow Us On Twitter