Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Apply the hook to get_the_archive_title()
<?php single_cat_title('You are viewing: '); ?>. - in this case, this text will be displayed
There are a lot of solutions on the net, here on several sites:
//Remove the word heading
add_filter( 'get_the_archive_title', 'artabr_remove_name_cat' );
function artabr_remove_name_cat( $title ){
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
}
return $title;
}
Add to the end of the theme's functions.php.
Tags and categories will also be removed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question