• Resolved igarciaoliver

    (@igarciaoliver)


    Hi,
    one of my clients sites is hosted at SG.
    I have coded a lot of plugins and shortcodes for him.
    Not all the images on those plugins/shortcodes are not being replaced with webP images.
    The jpg seems to be but not the png.

    is there a setting I need to change to have pngs also served as webp?

    I am getting the img src using:

    $postthumb = wp_get_attachment_image_src( get_post_thumbnail_id($postData->ID), 'mycpt-thumb' );
    $the_thumbnail = $postthumb['0'];

    thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Lazy loading has nothing to do with the WebP images generation. This is available only for Site Tools accounts and you will find it in the Media Optimization tab.

    This said, we optimize only images, properly added to the Media library.

    Thread Starter igarciaoliver

    (@igarciaoliver)

    Hi Hristo, thanks for the reply

    Yes, sorry I wrote the subject first when I meant to discussed lazy loading and then changed my mind and forgot to edit it!

    My issue is only in regards to WebP optimisation.

    My images are on the media gallery and my client has a Wp + Woocommerce GoGeek account.
    You can see in this images how the optimisation is applying to some but not all the images.

    https://garciaoliver.com/dump/screenshot.png

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Manual lazy-loading’ is closed to new replies.