WordPress Category Page Customization
Hide Featured Image WordPress
Learn how to customize a WordPress category and hide featured image pages by removing featured images and displaying post titles only. Easy-to-follow steps for modifying themes, using CSS, or plugins to create a clean, streamlined category layout.
Customize WordPress Category Page (you are here)
Keywords for Animated Subscribe Button
Button Call to Action Subscribe
Green Screens Action Background
Option 1: WordPress CSS Hide Featured Images
Modify the Category Template in Your Theme
1. Access your theme’s files:
- In your WordPress dashboard, go to Appearance > Theme File Editor.
- On the right sidebar, locate and click on category.php or archive.php (if category.php doesn’t exist).
2. Find and edit the code that displays
the featured image:
- Look for code like this, which displays the featured image:phpCopy code:
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
- Comment it out or remove it:Copy code:
// if ( has_post_thumbnail() ) {
// the_post_thumbnail();
// }
- Keep only the post title link:
Make sure the part of the code responsible for showing the post title remains: Copy code:
<h2><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h2>
- Save changes:
Click on the “Update File” button to save your modifications.
Option 2: WordPress Category Page Links Only
Use Custom CSS (No Coding Involved)
If you prefer not to modify the theme’s code, you can hide the featured images on category pages using CSS.
- Go to your WordPress dashboard:
Navigate to Appearance > Customize > Additional CSS.
2. Add the following CSS: Copy Code
.category .post-thumbnail {
display: none;
}
This CSS hides the featured images (post thumbnails) on category pages.
3. Publish your changes.
Option 3: WordPress Theme Modification
Use a Plugin (No Coding Needed)
You can also use a plugin to customize how category pages display without touching the code.
- Install the “Code Snippets” plugin (optional):
- Go to Plugins > Add New.
- Search for Code Snippets and install the plugin.
- Once activated, go to Snippets > Add New and paste the following code to remove featured images on category pages:
Copy code
function remove_featured_images_category() {
if ( is_category() ) {
remove_action( ‘genesis_entry_content’, ‘genesis_do_post_image’, 8 );
}
}
add_action( ‘wp’, ‘remove_featured_images_category’ ); - Save and activate the snippet.
These methods should allow you to hide the WordPress category and hide featured image on category pages and display only the post titles.