WordPress.org

Forums

Wilson
[resolved] Category PHP File ? (2 posts)

  1. kreativito
    Member
    Posted 1 year 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
    Member
    Theme Author

    Posted 11 months 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

Tags