WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can I change header and sidebar in various individual categories? (3 posts)

  1. kenwinstoncaine
    Member
    Posted 7 years ago #

    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

  2. Samuel B
    moderator
    Posted 7 years ago #

    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. :>)

  3. kenwinstoncaine
    Member
    Posted 7 years ago #

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

    Best,
    kwc

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags