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

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Entry Title & Featured Image Grid On Archive Pages in Genesis

This code enables you to show the title & featured image on all archive pages in Genesis.

This tutorial includes 2 solutions:

  1. The first solution uses a template which displays each title and image in a 3 column grid which can easily be changed to any other number of columns.
  2. The second solution uses a custom function.

Here’s one example tested on the Executive Pro child theme by StudioPress:

archive-grid

Note: Once you upload the template to your child themes functions file, i suggest you crop your featured images to exactly the same size before uploading them to each post or try the Regenerate Thumbnails plugin by Alex Mills ( viper007bond )

Also, this is how i configured the Genesis > Theme Settings > Content Archive settings:

content-archives

Usage on Specific Archives

To control which archives the code effects, you can use the WordPress Template hierachy and simply change the filename of the template or add the code to your functions file with a conditional tag, example code for this which produces exactly the same result on the front end is also included for logged in members:

Register for full access

Taxonomy Terms

Reader Interactions

Comments

  1. Rita says

    August 23, 2017 at 2:03 am

    If I use this as a tag arhcive page I would like to get the tag as a title on the page. LIke “Arhive for: tag” or what the phrase is supposed to be. When I use it now I get nothing in the top of the page.

    Log in to Reply
    • Brad Dalton says

      August 23, 2017 at 2:16 am

      The tag name is displayed as the archive page title by default unless your theme has removed it or code in the template removes it.

      You can also edit the tag archive and modify the title and description.

      Log in to Reply
  2. babrees says

    January 6, 2017 at 7:46 am

    Hi. How would I do this for just 1 specific category please?

    Log in to Reply
    • Brad Dalton says

      January 6, 2017 at 11:31 pm

      Name the file category-{slug}.php – If the category’s slug is news, WordPress will look for category-news.php.

      Log in to Reply

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.