• cag8f

    (@cag8f)


    Hi all.

    I am having difficulty trying to edit the layout of my category page (https://kabultec.org/wp/category/democracy/1 ) to match the layout of my separate blog page (https://kabultec.org/wp/blog/2 ). I have tried to follow the codex instructions (Category Templates), but to no avail. Per the WordPress codex, here is what I carried out:

    I determined that the category page was using the archive.php template, while the blog page was using the home.php template. I copied the home.php template and renamed it to category-democracy.php (in the same directory). Now the category page is using the category-democracy.php template, but the layout is still full width–it doe not display the right sidebar as expected.

    Any guidance on what I’m missing/doing wrong? Thanks in advance.

    There’s a line in the PHP file:
    <?php spacious_sidebar_select(); ?>
    I found this function in my theme’s inc/functions.php file. But interpreting it was a little beyond my expertise. The solution could possibly lie therein.

    For the record, to ascertain the templates used, I am using the plugin Reveal Template.

  • The topic ‘Change layout for category’ is closed to new replies.