Ideal Image Size

This topic contains 5 replies, has 3 voices, and was last updated by  Paolo 8 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #303344

    Edward Caulfield
    Expired Member
    Post count: 24

    Hello,

    I am trying to find the ideal image size for places in Geodirectory. It looks like Google MAPs wants 241 x 95, however when I do this, the image shown in the details overflows. Is there a setting that I need to use to get this to consistently scale the image for both Google Maps and the Geodirectory detail?

    Screen shot attached.

    Many thanks

    Edward

    #303348

    Kor
    Moderator
    Post count: 16516

    Hi Edward,

    Unfortunately, the image size on the map popup uses the “Background-size” > “Cover” CSS style which will automatically fit the image to match the container size. A workaround for this would be to change the “Background-size” to “contain”, which can be done using the custom CSS code below. Insert into GD > Design > Scripts > Custom Style CSS.

    
    
    .geodir-bubble_image .geodir_thumbnail {
        background-size: contain;
    }

    Thanks!

    #303350

    Edward Caulfield
    Expired Member
    Post count: 24

    Hello Kor,

    Thank you for getting back to me so quickly. I’ve made the modification as suggested, however it doesn’t appear to have changed anything.

    Any idea what I am missing?

    Many thanks!

    Edward

    #303366

    Kor
    Moderator
    Post count: 16516

    Hi Edward,

    That custom CSS only changes the image on the map popup. Check out this screenshot http://prntscr.com/d763mj . You can do the same to featured image on the listing using the custom CSS code below. Add this below the code you entered just now.

    
    
    .geodir_category_list_view li .geodir-post-img .geodir_thumbnail {
        background-size: contain;
    }

    Thanks!

    #303372

    Edward Caulfield
    Expired Member
    Post count: 24

    Much better! Thank you. Shouldn’t something like that be the default setting?

    #303770

    Paolo
    Site Admin
    Post count: 31211

    Cover works best in 99% of case, for images with letters (logo) or a portrait, contain works best. but those are definitely the minority.

    Thanks

Viewing 6 posts - 1 through 6 (of 6 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