Change page template for categories
-
Is it possible to change the page template that the main and individual category pages use? They currently use the default template (page.php) but we would like to be able to customize this specifically for events and categories and not have it impact the rest of the site. We’ve changed the template that the Categories page uses, but that only changes the main category page and not the individual category pages. Also, it doesn’t end up displaying the content any way when we use that. It just shows “CONTENTS”.
Category Page: https://hopebridgesbx.wpengine.com/events/categories/
Individual Category Page: https://hopebridgesbx.wpengine.com/events/categories/autism-community/We’ve also tried using custom body and post classes to be able to check against, but again that is only work for events and not categories. We could probably make it work if there were some sort of body class or id that we could check against to see if it was a category page.
We’ve created our own single-event.php file, but that is only for the events and we need to be able to customize the category pages.
We’ve also copied over the template files (category-list.php and category-single.php) but only some changes made to the category-single.php file show up. None of the edits to category-list.php show up on the front-end of the site.
Any help would be appreciated.
The topic ‘Change page template for categories’ is closed to new replies.