• Hi

    I am trying to add different images or banners in different category pages.

    
I’ve read here that 1 easy solution is this:
    
”put the HTML for the banner in the Category Description field. Then just make sure your theme’s category.php has the code to DISPLAY CAT DESCRIPTION HERE.
to do that, paste this on the category.php file”

    I can’t find the category.php file!
    I’m using a theme called “modularity” and my directory looks like this:
public_html/wp-content/themes/modularity
and inside this folder there’s no category.php file there.
thanks.


    gaby

Viewing 1 replies (of 1 total)
  • hi

    do you have an archive.php file? If there is not a category.php file in a theme, WordPress uses the archive.php to display categories as well as archives.

    You should be able to copy the contents of archive.php to category.php and upload that file to the theme folder. It will contain some code that is used when processing pages other than category, but since category.php will only be used by WP to display category pages, that other code will never get executed.

    Then you can make the changes to category.php that you read of in the solution.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add an image below the header on the category pages.’ is closed to new replies.