• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

Display Only Featured Image & Title On Different Content Archives Using CSS

This CSS code hides the entry meta and content excerpt from displaying on any category archives page.

Simply put, the CSS code prevents the post info/meta and excerpt from displaying so only your post image and entry title display.

All Category Archives

.category .entry-meta,
.category .entry-content p {
display: none;
}

All Archives

.archive .entry-meta,
.archive .entry-content p {
display: none;
}

And here’s the result:

archive page

You can also modify the code so only the featured/post image and title display on your home page or blog page.

Home Page

.home .entry-meta,
.home .entry-content p {
display: none;
}

Blog Page

.page-template-page_blog-php .entry-meta,
.page-template-page_blog-php .entry-content p {
display: none;
}

Pretty simple solutions which you may find useful at some stage.

Can also be done using PHP code.

Using CSS To Solve Similar Problems


    Using CSS To Only Display Title On Category Archives

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.