Location and Default Image Frustration
This topic contains 9 replies, has 4 voices, and was last updated by  identity 5 years, 10 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: Default Images, hero images, location images
- 
		AuthorPosts
- 
		
			
				
November 24, 2019 at 12:08 am #518416It appears that the hero/header image on Listing Detail only changes from a sitewide image if the listing uploads an image. Likewise, even though an image caption can be set for the location image, any image uploaded to a city/location isn’t actually used. Boggled on why the theme doesn’t utilize these? So much functionality built into the core, why is it stripped away at the theme level? Is it possible for this functionality to be put back in? If not, can someone please direct me to any themes that fully utilize the core functionality so that I can have it themed the way I want? Cheers November 24, 2019 at 12:39 am #518418Location images are for location pages. If you want to change the default image for all pages, then you can use this line in your wp-config.php file: define('SD_DEFAULT_FEATURED_IMAGE', "https://mysite.com/images/new-image.png");Thanks November 24, 2019 at 1:03 am #518419Thanks Guust, What I actually want is to have more granular images, not just change the site wide image. So default/fallback images for CPT, category, and location pages. Cheers November 24, 2019 at 1:50 am #518421Supreme does not use hero images for 
 CATEGORIES: https://wpgeo.directory/supreme-directory/places/category/hotels/
 CPTs: https://wpgeo.directory/supreme-directory/eventsIt looks like the latest version of Supreme no longer uses the location images. I’ll get the developers to have a closer look. Thanks November 24, 2019 at 5:37 pm #518493You’re right, though I wish there was more of an option for that as those pages really diverge from the overall look of the rest of the site, even more so as it drops the footer as well. Hopefully at least the location images can be restored though. It would also be nice if the detail page had that functionality as well, when an image isn’t uploaded, to at least display a CPT/Category/Subcategory default image. Thanks as always (FYI, at some point here, I might be reaching out to you for some custom design/development work). Cheers November 24, 2019 at 11:13 pm #518541If you want to display fallback images you can do that with GD Post Images, just open up the element properties and set them as you like. Add that in place of the feature area’s current functionality would require a customization. November 28, 2019 at 7:50 am #518994Hi @identity, ideally the detail page load featured image as hero but if featured image not exist. it pick the default image set in theme. if you want to customise the image to category or location image. 
 we have a filter to change hero image as per your requirements.function sd_featured_image_callback( $image ) { // Maybe modify $image here as you want. return $image; } add_filter( 'sd_featured_image', 'sd_featured_image_callback' ); I am checking the location image issue mention above.Thanks December 12, 2019 at 7:32 pm #521249Any update on the default location images appearing? It is made even a little worse because the image caption actually appears under the city/location name, yet loses all context with an unrelated image. Cheers December 13, 2019 at 10:18 am #521322This reply has been marked as private.December 13, 2019 at 3:05 pm #521361Excellent, thanks Naveen! Cheers 
- 
		AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket