Close

Remove «Category:» WordPress

How to remove “Category:” from category title

It’s easy to do that. Simply open the functions.php file in your theme and add the following code at the end of the file:

 

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