I have just spent half an hour trying to figure out how to remove the very annoying “Archive for” text that appears when I set up menu items that point to my Blog Categories in WordPress 3.1. After a bit of messing round I found the answer!
I Googled it in the hope to find out how to remove this text from the WordPress theme I was using but it soon became apparent that I would have to change the source code.
Most sites said that I had to change text in a file called archive.php which is located within the theme folder at
They said to change all sorts of different codes, phrases and words which worried me. However, when I opened the file in an editor there was no sign of any of the suggested lines.
After messing around with various lines in the code to no avail in archive.php I noticed there was another file called category.php. I opened it not expecting to find anything inside as almost every webpage I found on the “Archive for” WordPress issue said the text I had to change was in archive.php. To my surprise I found the following line
<h1>Archives for ‘<?php single_cat_title(); ?</h1>
All I did was remove the text so it looked like this:
<h1><?php single_cat_title(); ?></h1>
I uploaded the new file and the Blog Category title changed and no longer had the “Archives for” text.
The moral of the story is to check both of these files in your WordPress install just in case the entry you need to change is hidden away in category.php on your particular theme.
Hopefully you will find this tip useful on your own WordPress blog!
Did you find this article useful?
If you found this article helpful please take a moment to tweet, like, or share this article by using the buttons at the top of this page. I’d really appreciate it.
Also, if you are feeling extra generous after having your issue solved please leave some encouraging feedback in the comments section at the bottom of the page. I love getting feedback from visitors. It encourages me to find further solutions to those awkward little iPhone, iPad, MacBook, and Mac problems that we all suffer from.
Did you find this post helpful?
If you found this post helpful please take a moment to tweet, like, or share this article by using the buttons at the top or bottom of this page. I’d really appreciate it. 🙂
Also, if you are feeling extra generous please leave some encouraging feedback in the comments section at the bottom of the page. I love getting feedback from visitors. It encourages me to continue writing useful articles for readers like you.
Thanks for taking the time to read my website! You can find other articles that you might find useful at the bottom of this post. Enjoy!