depends on the theme.
what theme are you using?
check if the theme has a category.php template (or archive.php or index.php; https://developer.wordpress.org/themes/basics/template-hierarchy/ )
then check in that file, if the word ‘category’ is used somewhere, or if the theme uses the_archive_title() https://developer.wordpress.org/reference/functions/the_archive_title/
also review https://codex.wordpress.org/Function_Reference/category_description and see how you can integrate that after the category title.
Currently just using the 2015 theme. And wow, I have way too much to learn on this. What you just said was like a foreign language to me. I need to run through some beginner tutorials!
Twenty Fifteen does use the_archive_title() –
it should also directly output what you enter as ‘category description’ when editing the category.
to remove the word ‘category:’ from the output, start by creating a child theme; http://codex.wordpress.org/Child_Themes
then add a filter to the child theme’s fuctions.php;
example code:
add_filter( 'get_the_archive_title', 'remove_category_name_from_archive_title' );
function remove_category_name_from_archive_title( $title ) {
if ( is_category() ) $title = str_replace( 'Category:', '', $title );
return $title;
}
Awesome, thanks for this. I added a line to remove the potentially unwanted “Tag:” bit as well:
add_filter( 'get_the_archive_title', 'remove_category_name_from_archive_title' );
function remove_category_name_from_archive_title( $title ) {
if ( is_tag() ) $title = str_replace( 'Tag:', '', $title );
if ( is_category() ) $title = str_replace( 'Category:', '', $title );
return $title;
}