How to remove “Category:” from category title

Coding

To remove “Category:” from category title on WordPress Just follow below steps:

  1. Open functions.php file in your wordpress theme
  2. Add below 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' );
    

     

  3. Save the file
  4. Open your Category page now
© 2019 Ashwani Kumar Singh | ScrollMe by AccessPress Themes