Forums

Customising the category pages (2 posts)

  1. libbyyoung
    Member
    Posted 3 years ago #

    I would like to put a custom header on each category page. Is there any way to do this?

  2. jaredquinn
    Member
    Posted 3 years ago #

    What do you mean by custom header?

    In your template you can use template tags to do things like:

    if(is_category()) {
    ...
    }

    To determine if you're looking at a category archive page.

    You can also create custom templates for your category archive pages by calling them category-#.php (where # is the category number) in your theme directory.

    See http://codex.wordpress.org/Category_Templates for full details of what you can do.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.