November 02, 2016
By default, Category templates bring in the words “Category Archives:” ahead of the category name with most themes, and this isn’t always ideal. When theming Archives separately from Category pages, it’s necessary to target the title of Category to edit the default text.
function new_category_title(){ if (is_category()){ $name = get_bloginfo('name'); $content .= '<h1 class="page-title">'; $content .= ' <span>'; $content .= single_cat_title('', FALSE); $content .= ' |</span> ' . $name . '</h1>'; return $content; } } add_filter('thematic_page_title','new_category_title');
The above function is based off of information found here and is easy to customize to suit your needs.
Category: Category Name
function new_category_title(){ if (is_category()){ $name = get_bloginfo('name'); $content .= '<h1 class="page-title">'; $content .= 'Category'; $content .= ' <span>'; $content .= ' ' . $name . '</span></h1>'; return $content; } } add_filter('thematic_page_title','new_category_title');
Category Name Only
function new_category_title(){ if (is_category()){ $content .= '<h1 class="page-title">'; $content .= single_cat_title('', FALSE); $content .= ''. $name . '</h1>'; return $content; } } add_filter('thematic_page_title','new_category_title');