• I am working on a website having multiple categories.
    Category hirerchy

    Perfume
    ....Men
    .....Body Spray
    .........Product 1
    .........Product 2
    .........Product 3

    I want to edit (Body Spray) Category template, Which file do i override.

Viewing 1 replies (of 1 total)
  • The wordpress template hierarchy for categories is something like this in the order of priority:

    1. category-slug.php
    2. category-ID.php
    3. category.php
    4. archive.php

    So, for Body Spray, lets say if the category slug is body-spray and the ID is 35, you would create one of the following:

    category-body-spray.php or category-35.php

Viewing 1 replies (of 1 total)
  • The topic ‘Template Override’ is closed to new replies.