Support » Themes and Templates » custom themes for different category types

  • hey everyone.
    if someone could help me out and link me to a tutorial or tell me how to have a custom theme for specific category types.

    i tried the custom post type UI plugin but that does not help me because i have many of already published posts in a certain category that i only want to change the looks of the pages containing to that category only.

    thanks for any help

Viewing 6 replies - 1 through 6 (of 6 total)
  • anyone can help?

    seriously does WP community suck this bad people dont help support?

    Chip Bennett


    Theme Review Admin

    You can’t have different Themes for different categories; however, you can define different template files for each category, within a single Theme.

    You can have separate template files, such as “category-foo.php” (for category “foo”), that will enable you to customize the layout and output for category “foo”).

    Also, when viewing the category index, the CSS class “category-foo” is applied to the BODY tag, which will enable you to customize the CSS for the index page for category “foo”.

    And finally: please bear in mind that everyone who posts on these forums is a volunteer. You are not entitled to replies, prompt or otherwise. Please be respectful.

    thanks chip

    i had created a file called single-equipment.php using that codex documents but it did not work

    i am looking to create a single post layout that only refers to posts in the equipment category, not looking to style the equipment category itself

    not sure what needs to be done but i cant seem to find it anywhere.
    I can although style pages and use the equipment.php file to style the page but thats all it does

    Chip Bennett


    Theme Review Admin

    If the category is “equipment”, then your template file needs to be named “category-equipment.php”.

    For customizing the output of single.php per-category, you’ll have to use conditional tags within single.php itself.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘custom themes for different category types’ is closed to new replies.