• I have several categories with subcategories. Categories are along the main header menu and when you select one, you will have a category landing page with the related subcategories listed in the left-sidebar. Selecting a Subcategory brings up a different landing page.

    The category landing pages are all the same layout (with obvious dynamic cat-name and menu) regardless of the category – just the colour scheme is different. The sub-category landing pages will also be the same layout as each other, with the differing colour schemes of their parents.

    The way I see it I make a category.php page that applies the proper styles, category name, menu, etc. But then what do I click through to? Do I have to make an individual page for each subcategory (ie category-10.php)? or can I assign a subcategory template for use by any category that is the child of a main category? Do I have to make individual templates for all of these? Am I missing a much better solution?

    Any tips are appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jungalist

    (@jungalist)

    Sorry: Using 3.0.1

    If your theme is using the body_class, you could style the various catgeory pages using pure CSS.

    Thread Starter jungalist

    (@jungalist)

    Sorry, I guess I wasn’t very clear. The styling is not the only difference from the category and subcategory pages, just that all categories have the same layout (but different colours) and subcategories share a layout.

    The functionality present is different though. Each category will have category name, respective colour scheme and some “highlight” boxes with various features and areas of the category displayed from the db. For example every category will have a “We tried it” box and a “Top Picks” box (or whatever). The subcategory pages will be where the actual posts display.

    Does that make more sense?

    How about a combined approach – the CSS/body_class method plus some category conditionals in a master category template?

    Thread Starter jungalist

    (@jungalist)

    Oh, that looks quite promising, thank-you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How should I lay this out?’ is closed to new replies.