Location and Default Image Frustration

This topic contains 9 replies, has 4 voices, and was last updated by  identity 4 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #518416

    identity
    Lifetime Member
    Post count: 445

    It 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

    #518418

    Guust
    Moderator
    Post count: 29970

    Location 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

    #518419

    identity
    Lifetime Member
    Post count: 445

    Thanks 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

    #518421

    Guust
    Moderator
    Post count: 29970

    Supreme does not use hero images for
    CATEGORIES: https://wpgeo.directory/supreme-directory/places/category/hotels/
    CPTs: https://wpgeo.directory/supreme-directory/events

    It looks like the latest version of Supreme no longer uses the location images. I’ll get the developers to have a closer look.

    Thanks

    #518493

    identity
    Lifetime Member
    Post count: 445

    You’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

    #518541

    Alex Rollin
    Moderator
    Post count: 27815

    If 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.

    #518994

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @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

    #521249

    identity
    Lifetime Member
    Post count: 445

    Any 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

    #521322

    Naveen Giri
    Moderator
    Post count: 1559
    This reply has been marked as private.
    #521361

    identity
    Lifetime Member
    Post count: 445

    Excellent, thanks Naveen!

    Cheers

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount