WordPress - Remove category from Title & URL

Dave SlackThursday, November 14, 2024

You've installed WordPress, added a few categories and started populating content, but there is an annoying prefix to the title and in the URL, let's remove them

WordPress has it's uses, even today, but it has a few quirks that don't make any sense. An interesting one is it's use of Category as a prefix to a URL and title. This might make sense for ecommerce where a category is a category and unless we specify it as a category it might not make sense, for example you might have a product called "Blue Socks" and a category called "Blue Socks" which contains all the socks that can be blue and the product called Blue Socks. A bit of an arbitrary example but this is pretty common.

Now, let's look at a usual website. We might have a category called "Services" and a category called "Projects", these are groups of content given a descriptive name, we do not need to tell people or search engines that they are categories. A project is part of a group of projects and a service is part of a group of services, we will not have a project called Project that people may look for. 

It's all semantics, but as SEO is based on semantics, the distinction is important. So how do we get rid of these strange quirks? 

Title

The most simple way is to change theme, but if you have a theme you like, but your categories all have that prefix "Category: " and you want to remove it it is very simple

  1. Login
  2. Go to any category page on your site
  3. At the top, hit Edit Site
  4. Click the title
  5. On the left under the Block tab you will see "Show archive type in the title", untick that
  6. Hit Save at the top right

That's it, simple.

URL

No one is searching for categories, so having it appear as one of your main keywords for your website is just maddening. Let's remove it from your URLs:

  1. Login
  2. Go to your Dashboard
  3. Select Settings -> Permalinks on the left
  4. Scroll down to Category base and add a dot '.' into the field
  5. Hit Save Changes at the bottom

All URLs with a dot in them do not render the dot so a URL that is was https://trampcreative.co.uk/category/services/ becomes https://trampcreative.co.uk/./services/ dots are not rendered and neither are double forward slashes so we get https://trampcreative.co.uk/services/

Now, if only we could remove the word collection from Shopify URLs.

Leave a comment

If you don't agree with anything here, or you do agree and would like to add something please leave a comment.

We'll never share your email with anyone else and it will not go public, only add it if you want us to reply.
Please enter your name
Please add a comment
* Denotes required
Loading...

Thank you

Your comment will go into review and will go live very soon.
If you've left an email address we'll answer you asap.

If you want to leave another comment simply refresh the page and leave it.

We use cookies on Huyton Web Services.
If you'd like more info, please see our privacy policy