In your functions.php
of your theme file add the following code, taken from Remove “Category:”, “Tag:”, “Author:” from the_archive_title.
add_filter( 'get_the_archive_title', function ($title) {
if ( is_category() ) {
//being a category your new title should go here
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
} elseif ( is_author() ) {
$title="<span class="vcard">" . get_the_author() . '</span>' ;
}
return $title;
});
Of course you need to read about how the functions.php
works. https://codex.wordpress.org/Functions_File_Explained
Related Posts:
- Remove “Category Archives: title” at the top of a category page [duplicate]
- Display all posts with same title
- How to get post category title within the loop?
- Single_cat_title() print the title before text
- Add title, post content, and category like add_post_meta and update_post_meta
- How to remove “Category : …”
- How to remove category titles?
- Hard coded main navigation
- how to remove the default title of Categories widget
- How to Remove a Title from All Category and Tags Page?
- About title on a page
- Show different title on category page
- Output Title of Post’s Current Category
- Shop Category Pages missing s
- Include a page’s “category” in its URL
- Category name as page title
- How to auto update post title and slug with category name when post status is updated
- How do you add Author and date Published on Category Pages?
- how to display page title only for child category pages
- Weird html output of single_cat_title – is not inside of the html element?
- How to hide my categories pages’ names, and how as well to reduce the space beween my sidebar’s widgets?
- Display all posts from all categories with pagination
- is_category() function
- Create terms when registering taxonomy?
- How do I edit pre_get_post for the category the user is currently in?
- Category Alphabet List Broken
- WooCommerce – Display product child categories from specific parent
- Display only one result from “get_the_category_list”
- Display empty taxonomy terms with get_terms()
- Show list of categories even if they have no posts
- Assign an icon to a category post
- How can I show the subcategories content on the parent category page?
- How to control template resolution if both Author and Category filter in place?
- Custom Category/Subcategory structure
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- Format Brand value in Category view [closed]
- Remove ‘rel’ attributes from the_category() output
- Default category link for a custom category is a broken link
- Get multidimensional array that reflects category hierarchy
- 3 Columns, 3 Categories, One Archive, and Pagination
- Possible to make a subdirectory that loops through a single category?
- Archives for each category on WP Multisite
- Update post title with category name after editing a category
- Automatically set default password to all posts in a specific category
- Warn me about ‘uncategorized’ posts
- Categories showing page not found
- Why category.php throw 404 in wordpress while calling paginate_links()?
- How to get related tags based on a category?
- Send to different single pages by category when multiple categories exist
- How can you change the permalink for pages?
- WordPress Drop down category as array for using in page builder
- How to select category on if function
- how to wordpress When I click on the category link, subcategories appear
- woocommerce related products by specific categories [closed]
- Problem with different query loops (and “main loop”) on category template page!
- Show posts in “image” format when viewed in category page, but with comments in blog
- Change the name Category – Not change category name
- How to change the order of the subcategory and category in a post?
- Properly setting up a feed
- Why get_category() function is not working not working when embedded in a page?
- how to nest specific category thumbnails inside different containers
- Eliminate word from $term->name
- Is there any way to check which wordpress categories was created by which user?
- Adding a block with query in homepage
- multiple values in an array for category__and does not work with WP_Query
- Category view with contents of [gallery]s shown
- How can I include custom category and tag base in template files?
- query_post problem
- Get a list of all links on a page?
- Add properties to term object
- Display all Categories
- custom wp_list_categories in single.php
- How to target all woocommerce categories that don’t have any subcategories in them?
- Is this process OK to replace URL structure?
- How can i echo next and previous custom category from a Taxonomy
- No hierarchy in wp_list_categories with child of and depth
- How to check a category checkbox using JavaScript
- Need help to structure our a complex hierarchy
- global categories – Share specific categories in wordpress multisite
- WordPress update 4.7 – the 70.000+ news posts became “Uncategorized”
- create post with main category and other categories from admin panel
- How Can Hide Define Category in Post Contents?
- get_posts – require all categories
- 404 error when i try to search by category or by tag
- Choosing different templates for categories
- Problem with wp_list_categories
- hierarchical taxonomy in permalinks? using same slug
- WordPress Numeric Pagination with Query String [duplicate]
- Changing Permalinks for Category Pages Only
- Taxonomy for custom post type not found
- display certain category on custom template page
- Get post by Category in custom template
- Ajax call activate after submit in edit-tags.php page
- Assign a category by user and customize the edit-tags.php?taxonomy=category page
- comments_number fails to print
- Sorting Woocommerce products by category and attributes
- How to show child category name & post from it’s parent [closed]
- Open everything in new tab
- hide_empty property not working when using get_terms
- Hierarchical outline of posts