Sunday, January 23rd, 2022

Add Image Before Cingular Entry Title

This code adds an 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 to your child theme images folder.

demo video

Shows an image added via the customizer appearing before the entry title on individual posts and pages.

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

installation steps

There are 3 stages:

  1. # Copy and paste the PHP code (without the opening PHP tag) from the functions.php file to the end of your child theme function file.
  2. # Upload your fallback image named default.png in your child theme images folder.
  3. # Copy the CSS from the style.css file and paste it at the end of your child theme style sheet and clear caching.

download folder

Related Tutorials

reader interaction

Source link