Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    The only way to do this right now, is to edit the /admin/wpsl-admin.js file.

    On line 275 you can find the code that handles the image formats. Normally it selects the thubmnail format itself, but you can change it into this to make it go for the full size.

    Remove the code from 279-285, and place this single line back.

    thumbUrl = media_attachment.sizes.full.url;

    Hi I tried this but it didn’t make any difference, can you please advise.

    Sorry the link to my site is: https://tiersystems.co.uk/nathan/

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I see I missed some things.

    Open the js/wpsl-gmap.js and replace line 1152 with this code, that will remove the width and height. Or you can replace the values with whatever you want.

    storeImg = "<img class='wpsl-store-thumb' src='" + thumb + "' alt='" + store + "' />";

    Also open the /css/styles.css and go to line 192 and remove the width and the height, or again set them to the dimensions you need.

    Thread Starter lundybuilds.it

    (@lundybuildsit)

    The previous posts are missing a step, i couldn’t get it to work at first and then some digging revealed that you need to modify one more file.

    In the frontend/wpsl-ajax-function.php file you need to change line 67 from:

    $thumb_src = wp_get_attachment_image_src( $result[$k]->thumb_id );

    to

    $thumb_src = wp_get_attachment_image_src( $result[$k]->thumb_id, $size->full );

    Once i did this in combination with the above suggestions my full size images are now loading correctly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change Thumbnail to Full IMage’ is closed to new replies.