Customizing display of Category pages

I want to create a completely custom layout for my category pages (with the category description and a list of the posts - titles only - in ascending order).

I feel pretty confident about being able to write the necessary php code for what I want, but am a little hazy on how to ingetrate with the theme files.

I found an excellent article on wordpress.org (https://codex.wordpress.org/Category_Templates) which indicates that I should just create a category.php file and put it “in my theme” but I couldn’t find anything in the X or Pro documentation that indicates that this is supported my Renew template.

My questions: Within PRO, Renew Stack,

  1. where should I place category.php (or a similar file) with my custom code

  2. how do I call it … is it automatic (as indicated in the wordpress article)? or do I need to modify index.php or content.php to include or access the file?

Note - this will be for ALL category archives (at least, that’s my plan at the moment).

Thanks

Hi MarieGale,

The main file which is responsible for the archive page is:

wp-content/themes/x/framework/views/global/_index.php

Now you can override that file with the same folder hierarchy to your Child Theme or use the same content of that file for your Category PHP file.

Our theme does follow the same trends as the article you mentioned, but we do not have the category.php file. But as soon as you add one it will override the one in the theme.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.