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.
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.
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.
Leave a Reply
You must be logged in to post a comment.