• 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

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.

Customizer Infinity Pro Theme Taxonomy Terms

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.