Community Forums › Forums › Archived Forums › General Discussion › Essence Pro Archive Images
Tagged: Essence Pro, featured image, hero image
- This topic has 8 replies, 4 voices, and was last updated 5 years, 5 months ago by
dreamdancer.
-
AuthorPosts
-
June 19, 2018 at 5:36 pm #220994
vibrantvision
MemberI set up Essence Pro for a good friend of mine and can't get the theme to pull the 1st image from the content for the archive pages thumbnails. It seems to pull random images regardless of what the first image is. Suggestions??? Thanks!
https://amyswift.clubJune 21, 2018 at 10:38 am #221035AnitaC
KeymasterIf you would like a certain image to be displayed as the thumbnail image on the archive pages, you will need to set that image as the Featured Image.
Need help with customization or troubleshooting? Reach out to me.
June 21, 2018 at 11:54 am #221045vibrantvision
MemberYes, Anita - I know that. Thanks anyway.
In Essence PRO if you add a featured image it shows full screen on the single blog page. I want the default home page image to show on the single blog page throughout the site and pull the first image from the post to the archive thumbnail. Cheers!
June 21, 2018 at 12:00 pm #221046AnitaC
KeymasterOkay, so what you wrote in reply is different than your initial question. What you want would be customization. You'd definitely would need someone to custom code the workings of that for you. I, unfortunately, don't have that level of skill to be able to do that for you.
Need help with customization or troubleshooting? Reach out to me.
June 21, 2018 at 1:08 pm #221049vibrantvision
MemberThanks Anita!
June 21, 2018 at 9:10 pm #221055Brad Dalton
ParticipantTo clarify, you want the front page header hero image to display on single posts and the 1st attachment image from the single post content to display as the featured image on archives?
June 21, 2018 at 9:24 pm #221056Brad Dalton
ParticipantYou'll find the function for the featured image in genesis > lib > functions > image.php which shows you how the first-attachment works between lines 90 - 113.
Line 80 of the same file also includes a filter you can use in a custom function to modify the default functionality genesis_get_image_default_args
Based on testing, it doesn't use the first attachment in Essence Pro as the single post hero header, it uses the featured image. However, it does use the first attachment as the archive image which is what you want so you only need to modify the code for the single post hero header.
You'll also find the function for the essence_get_default_hero_background_image in helper functions.php on line 48 so you can use that function or the direct path to the image to set it as the single post header hero.
June 21, 2018 at 9:34 pm #221057Brad Dalton
ParticipantYou should get the result you want if you don't add a featured image and make sure the first attachment image is the one you want to use on archives.
I think it would be better to modify the code so the featured image is used as the archive image and the front page header hero as the single post header hero.
September 8, 2019 at 9:28 pm #493464dreamdancer
ParticipantI want to do the same thing, have most of the pages on the site use the same header, but I needed the thumbnail on the archives. Not using the featured image, but instead using the first attachment image gives me what I needed without changing any code. Thank you Brad!
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.