WP Snippets: remove “Category:” from category title


Into functions.php:

//--MSC remove “Category:” from category title

function prefix_category_title( $title ) {
    if ( is_category() ) {
        $title = single_cat_title( '', false );
    }
    return $title;
}
add_filter( 'get_the_archive_title', 'prefix_category_title' );