InfoWindow Image Size

This topic contains 2 replies, has 2 voices, and was last updated by  Rich B 10 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #18170

    Rich B
    Free User
    Post count: 36

    Hi Guys

    Im using a custom infoWindow based on the function from Vikas in this post:
    https://wpgeodirectory.com/support/topic/change-layout-of-google-info-box/

    Ive copied and changed the original infoWindow code but I want to make the preview image the infoWindow loads a thumbnail so that it does not create a heavy load on the site.

    Looking at the original code below used to load the image, how would I make it load the WP thumbnail or a custom image size instead?

    
    
    $post_images = array();
    if(!empty($postinfo_obj->post_images))
    $post_images = explode(",",$postinfo_obj->post_images);

    Thanks!

    #18178

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There is not super easy way, u could try something like this http://wordpress.stackexchange.com/questions/128538/image-resize-with-image-url or something like timthumb script.

    Stiofan

    #18247

    Rich B
    Free User
    Post count: 36

    Stiofan Thanks!
    Thats perfect, im just going to use a simplified version of the string replace as the images i’m using will all be cropped to an exact size.

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