Support » Themes and Templates » Customise Category pages

  • Hi,

    Is it possible to customise the words and images on each individual category page?

    i.e. /category/books/ would have ‘Welcome to the books area’ with a picture of a book.

    Anyone know how to do this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You may want to take a look at the Category Templates:

    it seems complicated, i assume i have to make these files and put them in the /theme/ directory


    And then, above the loop in those files add:

    <div id=”sticky-snip”>
    This is the ‘Books’ category, enjoy the book reviews.

    Doesn’t seem *that* complicated if the above is correct!


    Basically that’s the idea.
    Of course, if the differences are not too big… you could have one category.php template and seven if/else if conditional statements for displaying a different title/text.

    That’s exactly what you could do, and no it isn’t complicated, but it might be overkill. In the default theme (Kubrick) that comes with WordPress look at wp-content/themes/default/sidebar.php which uses conditional tags (is_foo()) to print things like “You are browsing the archives for the bar category”. Look at the codex for conditional_tags. If you just want some custom stuff in your sidebar, or before the loop on your archives I think conditional tags might be even easier.

    Best, Darren

    Yes, but that solution does seem somewhat ugly. Perhaps there is a template tag for it?

    edit: yup, use at the top of category.php

    ryoken, that is a nice quick solution that i will use for the time being.. thing is i need an image as well….

    i’ll look into the conditional tags but i’ll probably end up trying the first solution.

    will post the results

    Hi, one last question.. can I customise the single.php page depending on what category it is from?


    ? :S

    Not as you described above!
    You need a plugin:

    Please, read carefully the whole page I linked to – there is a mention about another useful plugin, too.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Customise Category pages’ is closed to new replies.