Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30954
    Oranges13
    Guest

    I am working within Haven theme and would like several categories to have custom templates. I am able to create a template `categories-annnouncements.php` for example, but is there a base template that I need to copy in order to get this to work inside Haven or the Bold Grid framework?

    My desire is to have a different sidebar on the Announcements page than on the default wordpress category page.

    Thanks for any assistance you can provide.

    #30955
    Jesse Owens
    Guest

    Hello-

    I can think of a couple of ways to accomplish this. Probably the easiest way would be to use a plugin like Widget Logic and test for is_archive() && is_category(‘announcements’). You can use this to determine which sidebar widgets show up based on the logic you need.

    That said- if you do want to create a new template in a child theme of Haven you should check out base.php, and use the wrappers you see there. You can also make a file called archive.php, which will be used on category pages and you don’t need to use a wrapper for it to work.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How can I create a category template page?’ is closed to new replies.