Genesis Tutorials

Add Image Before Singular Entry Titles

This code adds a image before all single post and page 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 single posts and pages.

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.

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

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

Download Folder

Related Tutorials

Leave a Reply

Your email address will not be published. Required fields are marked *