WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kreativito
    Member
    Posted 3 months 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 1 month 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

Reply

You must log in to post.

About this Theme

About this Topic

Tags