Add Image Before Entry Titles On All Archive Page Types

This code adds a image before all archive page type entry titles like this :

You can add your image via Customize > Before Title Image and also add a default image named default.png in your child themes image folder.

Demo Video

Shows the image added via the customizer displaying before the entry title on all archive page types including category, tag and author archives.

Tested using the Infinity Pro child theme by StudioPress however will work in any Genesis child theme.

Installation Steps

There’s 3 steps :

  1. # Copy & paste the PHP code ( without the opening PHP tag ) from the functions.php file to the end of your child themes functions file.
  2.  

  3. # Upload your fallback image named default.png to your child themes images folder.
  4.  

  5. # Copy and paste the CSS from the style.css file to the end of your child themes style sheet and clear caching.
  6.  

Download Folder

Note : If you’re already using the code to add the image before singular entry titles, only add the 2nd code snippet from the functions.php file.

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.