I was recently asked how to display the title only on all category archives.
The easiest solution is to simply hide what you don’t want displayed using CSS code in your child themes style.css file.
.category .entry-meta,
.category .entry-content {
display: none;
}
The CSS above will remove both the post info and post meta as well as the excerpt and featured image so only the title displays.
Works on HTML 5 themes only and will need to be modified for theme specific classes.
And here’s the result:
You can also achieve the same result using PHP code which i will write about shortly.
Leave a Reply
You must be logged in to post a comment.