Storefront Xyloto theme, remove the Products in the “XYZ” category text.

Very short post here for the folks using the awesome new Xyloto theme from Storefront Themes. Yes I work for them I know, but it really is pretty awesome.

The questions.

“At the top of the category pages it says Products in the “XYZ” Category. I just want the Category name, where do I change it”

Here is the short and easy answer. You will need to do one simple PHP edit. If you have not done this before see the note “Tools” at the bottom of this post.
Locate the taxonomy-wpsc_product_category.php file which is in the Xyloto theme folder. Make a safe copy somewhere in case you have problems.
Find the code shown below. In version 0.9.4 it is line 12, but should be easy to spot in any version as it is a short file of only 22 lines.

<h1><?php _e('Products in the', 'storefront'); ?> &ldquo;<?php the_title();?>&rdquo; <?php _e('Category', 'storefront'); ?></h1>

Just remove the unwanted text from the h1 heading. It should look like this when you are done.

<h1><?php the_title();?></h1>

Maybe you don’t want just the category name, you want it to say something else. Maybe you sell outdoor gear. You would like it to say Super cool climbing gear, or supper cool surfing gear. Notice I removed the “” around the category name and that I left the spaces between text and Category title > <.

<h1><?php _e('Super cool', 'storefront'); ?> <?php the_title();?> <?php _e('gear', 'storefront'); ?></h1>

Now this wil not translate anymore, if you need to support foreign language translation you need to dig a little deeper than this post has time for.

For Elegance theme:

Elegance 1.4.5, taxonomy-wpsc_product_category.php line 24


You must use an appropriate code editor NOT microsoft word or anything like that which adds a lot of invisible formatting and will be a disaster.
If you do not have one, 2 excellent free ones are…
TextWrangler for Mac,
Notepad++ for the PC

Leave a Reply