Add and change category.php


I just installed the Sparkling theme and I’m very happy with it, except for the category page, which is shown in the same way as the homepage.

I would like to create a category page with thumbnails and post title, similar to this:

But I cannot find category.php in my theme files.
How do I create the category page so that I can edit it?



I have created category.php (by making a copy of archive.php and renaming it to category.php).

Now my problem is how to change it so that it only shows post featured image (thumbnail) and title. Clicking thumbnail or title will link to the post.
I know how to style it using css, but I need help with the php. Can anyone help me? :slight_smile:

It is this code I need help with.
I would like to change it so that it shows post featured image thumbnail and post title, linked to the post.

<?php /* Start the Loop */ ?>
			<?php while ( have_posts() ) : the_post(); ?>

					/* Include the Post-Format-specific template for the content.
					 * If you want to override this in a child theme, then include a file
					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
					get_template_part( 'content', get_post_format() );

			<?php endwhile; ?>

I managed to do this by creating a custom content.php page :slight_smile:

Hi @tjuel,

Awesome great to see you managed to do it.

Please advise if you have more questions.

Have a fantastic day!