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.
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.
There’s 3 steps :
- # Copy & paste the PHP code ( without the opening PHP tag ) from the functions.php file to the end of your child themes functions file.
- # Upload your fallback image named default.png to your child themes images folder.
- # Copy and paste the CSS from the style.css file to the end of your child themes style sheet and clear caching.
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.
Leave a Reply
You must be logged in to post a comment.