WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Can I change header and sidebar in various individual categories?

[Resolved] Can I change header and sidebar in various individual categories?

  • kenwinstoncaine
    Member

    @kenwinstoncaine

    Hi

    Looking at http://codex.wordpress.org/Category_Templates, I see how I can change the templates that WordPress will call for various category pages.

    I think I see that I could have different headers for any number of different categories, if I choose to. I’m assuming that I also could have different sidebars for each. Is how to do that explained somewhere?

    My objective: I would like to create a number of individual category pages that each have their own unique header and each have their own unique sidebar content.

    Looks like all that can be done with the loop and functions. Has anyone written a tutorial on this?

    Thanks,
    ken

Viewing 2 replies - 1 through 2 (of 2 total)
  • Samuel B
    Participant

    @samboll

    Basically, you’ll need to create a new sidebar.php, header.php and footer.php and call them from within your catagory template.
    When I’ve done this on blogs I’ve set up, I usually just made a copy of each file and renamed them sidebar1.php (for example), header1.php, etc. Then I just take out what I didn’t want and put in what I did. Make the call from the template and fix the bugs. :>)

    kenwinstoncaine
    Member

    @kenwinstoncaine

    Very, very good and simple and clean. I THOUGHT it might work that way. Thanks for the help!

    Best,
    kwc

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Can I change header and sidebar in various individual categories?’ is closed to new replies.