Removing the Words “Archive of…” from Category Pages

*NOTE: The information below works on WordPress sites that are older than 3.0. In order to remove the words “Archive of…” text from WP 3.0 sites, simply go into the Archive PHP and find the following code:

if (is_category()){
$title .= single_cat_title(”, false);

Now, simply delete the second line, and you are all set. If you are still using another version of WordPress, the following may be of help to you.

So, here’s all you need to do.

  • Go to the Editor and locate the Archive php toward the top of the right hand column.
  • Go inside, and look for the following code <h2 class=”pagetitle”><?php printf(__(Archive for the ‘&#8216;%s&#8217; Category’, ‘kubrick’), single_cat_title(”, false)); ?></h2>
  • If you want no text at all to appear, simply delete that line of code and Voila! You have removed it.
  • If you want only the title of the category to appear, as I have my site set to, simply delete only the part that begins with the underscore up to  single_cat_title. Keep that part and change the (“,false)); to (“,true)); so, your code should now look like the following: <h2 class=”pagetitle”><?php printf(single_cat_title(”,true)); ?></h2>
  • Note: you can also change the size of the title by changing the heading tags surrounding the code <h2> and </h2> to a different number.

I’m learning tons about the backend editing of WordPress and hope to be able to design some awesome complete websites using WordPress alone. I’m actually working on a site right now for a church, and all of the changes should be finished soon. They’ll have to put in the content, of course, but the theme and layout will be ready for them. Stay tuned for other great tips! signature Removing the Words Archive of... from Category Pages

© 2009 – 2010, Sarah. All rights reserved.

2 Responses to Removing the Words “Archive of…” from Category Pages

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Like This Theme?

Artisteer - Wordpress Theme Generator

Make your own theme using Artisteer, then come back here for tips on how to make the most use out of this powerful design tool!

Best Image Resource

iStock is my first choice when purchasing stock photography, vector graphics, video, or audio files. Check them out!

Recent Projects

Legacy Builders Spa Travel Gal Expert Financing Page Expert Financing Home Page exchange-page Exchange Ministry