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
wp-contentthemesyour-theme
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!
Jude says
If you use the “Responsive” theme, you need to modify the file functions.php in the /wp-content/theme/responsive/include directory. It is on line 522.
Christina says
Excellent, thanks!
Christina says
Excellent! Thanks heaps!
Christina says
Excellent! Thanks so much!
DesertRose says
This was driving me crazy, thanks for the article, worked perfectly
seo expert forum says
This is very interesting, You’re a very skilled blogger.
I’ve joined your rss feed and look forward to seeking more of your great post.
Also, I have shared your site in my social networks!
Rovel says
Very helpful. Thanks for posting this.
Chris says
Here’s a simple, but useful addition to this – Run a find & replace on all folders – this will pull up the term wherever it is and you can determine whether it is the one to change or not. Each theme is written differently and in my theme ‘Archive for’ is only found in the archive.php file – but I only found that out after running the find & replace using notepad++.
Jenish says
Thanks , Its worked !!