[resolved] Category PHP File ? (2 posts)

  1. kreativito
    Posted 2 years ago #

    Hello Hello,

    I try to embed a code for the Category.
    I thought I can edit and change it by opening the category.php file.

    However, I can not find that file !

    So what's the name of the .php for the category ?
    And where to find ?

    Thank you so much ?

  2. Anders Noren
    Theme Author

    Posted 2 years ago #

    Hi Kreativito,

    Wilson uses archive.php instead of a specific PHP file for each archive type. In that file, you can insert the code:

    <?php if (is_category()) : ?>
       /* Your code */
    <?php endif; ?>

    ...and the code within the if statement will only run if the visitor is viewing a category.

    - Anders

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic