• Hello..

    I need to know what file determines the layout of a particular “category”. I want to alter that file so the new category will have the layout I want it to have…Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    Thread Starter i_banks

    (@i_banks)

    Hello Keesiemeijer,

    Thanks for your response.

    I just replied to a post that is similar to mine that you responded to. I’m curious as to your suggestion to save over the category.php file. Also, if I want to alter a “specific” category layout, wouldn’t I have to add a conditional statement to the category.php file?

    Go and read the page that keesiemeijer linked to.

    Moderator keesiemeijer

    (@keesiemeijer)

    If your theme has no category.php you can duplicate the index.php and rename it to category.php. You put this file in your theme folder. You can also rename the duplicate index.php to category-{slug}.php – If the category’s slug were news, WordPress would look for category-news.php
    You can use is_category() to customize the category.php.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘What File Determines “Category” Layout’ is closed to new replies.