Title: Removing &quot;Category:&quot; From Header
Last modified: September 1, 2016

---

# Removing "Category:" From Header

 *  Resolved [Tha Dopeman](https://wordpress.org/support/users/donpeoples89/)
 * (@donpeoples89)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/)
 * Hello everyone, I have a simple question, and I have seen others have the same
   problem.
 * I almost have my website looking as I want it but there is one problem. In the
   header of two pages in which I have used categories as menus, it shows “category:”
   before the actual title of the category.
 * Please help me solve this. I am using the Shop Isle theme. I have looked at other
   peoples suggestions from similar problems but am still lost in solving this issue
 * My website is [http://www.thadopeman.com](http://www.thadopeman.com)
 * Thank you very much for your help,
    Donald

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-7663493)
 * Try this google search
 * > wordpress remove ‘category’ from page url
 * For the worrd Category in the header, you will need to edit the header.php code
   Since your theme isn’t offered on wordpress.org, you should try contacting the
   theme’s support page for more help.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-7663494)
 * This can be done but you’ll have to get into the code of the template used to
   render the category pages. The steps are (1) make a child theme, (2) determine
   what template is in use, (3) copy that template to the child and edit it
 * create a child theme: [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
   
   determine the template: [https://wordpress.org/plugins/show-current-template/](https://wordpress.org/plugins/show-current-template/)
 * HOWEVER….
 * Since that is a commercial theme, we ask that you please go to their official
   support channel, so you can get support from the people who know it best.
 * [http://themeisle.com/contact/](http://themeisle.com/contact/)
 * Forum volunteers are also not given access to commercial products, so they would
   not know why it is not working properly. Other community members who may have
   faced your issue might be able to help you but your best bet is your product’s
   developer. Keep in mind we encourage you to use the official support venues, 
   as it allows the developers to be aware of issues with their code and gives back
   to the community in a more robust way.
 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-7663495)
 * Because I have a couple minutes, I did some digging and found that if you add
   toe following to the end of the theme’s function.php, it will do what you want
 *     ```
       add_filter( 'get_the_archive_title', function ($title) {
           if ( is_category() ) {
                   $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;
       });
       ```
   
 * this is from a thread over on stackexchange dot com
 * Besure to create a child theme if you use this so it won’t ‘disappear’ next time
   you update the theme
 *  [magefix](https://wordpress.org/support/users/magefix/)
 * (@magefix)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-7663496)
 * Just go to: Setting -> Permalinks
    Select “Custom Structure” & change it to: /%
   category%/%postname%/ Also in the “Category base” field, add “.” ( only dot )
   Save, and check your header again. Screenshot: [https://i.imgur.com/kkEwLLR.png](https://i.imgur.com/kkEwLLR.png)
 *  Thread Starter [Tha Dopeman](https://wordpress.org/support/users/donpeoples89/)
 * (@donpeoples89)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-7663499)
 * Thanks guys, I really appreciate it! I will try these very soon.
 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-7663500)
 * @ magefix: that removes it from the url, but he wants to remove it from teh wording
   in the header. Right now it shows ‘Category:Culture’ and (I think) he just wants
   it to show ‘Culture’. The code I gave will do that for him.
 *  [Digico Paris](https://wordpress.org/support/users/digico-paris/)
 * (@digico-paris)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-7663502)
 * Alternatively, you can create custom post type, it will follow the url you want.
 * aka mysite.com/potatoes/fried
 * or mysite.com/movies/new-blade-runner
 * just dig a bit into custom post types, wordpress is open to it.
 * have fun with WP 🙂
 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-7663526)
 * [@digico](https://wordpress.org/support/users/digico/) – did you read the original
   post??? He’s wants to remove the category name in the header.
 *  [magefix](https://wordpress.org/support/users/magefix/)
 * (@magefix)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-7663533)
 * I confirm what [@juggledad](https://wordpress.org/support/users/juggledad/) said.“
   Category:” is generated here:
    `<h1 class="module-title font-alt"><?php the_archive_title();?
   ></h1>` in archive.php
 * So what you need to do right now is to:
    1. Create a child theme. You can use
   a plugin for that. [https://wordpress.org/plugins/child-theme-configurator/](https://wordpress.org/plugins/child-theme-configurator/)
   2. After, edit the file /shop-isle-child/functions.php
 *     ```
       add_filter( 'get_the_archive_title', function ($title) {
           if ( is_category() ) {
                   $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;
       });
       ```
   
 * like [@juggledad](https://wordpress.org/support/users/juggledad/) suggested
 *  Thread Starter [Tha Dopeman](https://wordpress.org/support/users/donpeoples89/)
 * (@donpeoples89)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-7663542)
 * Thank you to every one. I got it to work!
    Big Thanks to Juggledad and magefix!
   Much appreciated!
 *  [bergamot](https://wordpress.org/support/users/jambojomu/)
 * (@jambojomu)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-9307614)
 * Hi [@magefix](https://wordpress.org/support/users/magefix/) and [@juggledad](https://wordpress.org/support/users/juggledad/),
   I have the same problem.
    I created the child theme by using the Child Theme 
   Configurator plug in. Next, from the plugins screen, I’m selecting the plugin
   and saying “edit”. Then it’s directing me to the “Edit Plugins” page with the
   Css. However, I can’t find the functions.php. The file names in the child theme
   aren’t as obvious as they are in the main theme CSS page. Am I on the correct
   page? The names are like this for example, I don’t see any functions any header,
   any footer php templates?
 * child-theme-configurator/child-theme-configurator.php
    child-theme-configurator/
   css/chldthmcfg.css child-theme-configurator/css/chldthmcfg.min.js child-theme-
   configurator/js/selectmenu.min.js child-theme-configurator/js/spectrum.js child-
   theme-configurator/js/spectrum.min.js child-theme-configurator/js/ctcgrad.js 
   etc. How can I proceed from here? How can I find the functions php? Thanks a 
   lot!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Removing "Category:" From Header’ is closed to new replies.

## Tags

 * [shop-isle](https://wordpress.org/support/topic-tag/shop-isle/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 6 participants
 * Last reply from: [bergamot](https://wordpress.org/support/users/jambojomu/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/removing-category-from-header/#post-9307614)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
