Where can I find the template that is used for the product-category page? The general template is "page-full.php". But where is the template for the single-product page (single.php?) and the product-category page? I'd like to edit them to show elements that are not visible on other pages and vice versa. Much appreciated.

  • Take a look at the WooCommerce documentation about their template structure. – Nicolai Dec 1 '14 at 14:32

Your theme doesn't necessarily include all these template files.

It might just use index.php to serve the single page template as well as listings (category, date, author, tag, etc).

The articles Theme Development and Template Hierarchy from the codex should get you on the right road with theme development.

If you add a single.php file, WP will use that instead of index.php for example.

'product-category.php' (as @ialocin rightly says) is almost certainly a WooCommerce template file and the way you override that is different. They have good docs: http://docs.woothemes.com/document/template-structure/

The general principle is the same - you override the default template (index.php) with successively more-specific templates.

  • Thank you for the quick response. So I essentially have to copy the existing page template and edit it. So I have to rename it "product-category.php"? Or rather. Where do I add the link for the additional template file? – theHubi Dec 1 '14 at 14:42
  • Like I said in my comment under your question, take a look at the WC documentation about their template structure and how to override templates. Because it differs a bit from the WP standard. @theHubi – Nicolai Dec 1 '14 at 14:45
  • I've skimmed through the text and get the basic concept. There's always a main file and a "substitute" file, if the first one does not exist. So essentially adding a "product-category.php" adds it automatically to that system? – theHubi Dec 1 '14 at 14:51
  • OP - answer edited above, @ialocin totally right of course. – divydovy Dec 3 '14 at 10:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.