• Resolved hbk747

    (@hbk747)


    Hello,

    I was running a page speed insights test on my website and google noticed that Image elements do not have explicit width and height. When I clicked on this, the main issue was from the plugin. The rest of the non-plugin images are fine. Please check the screenshot https://ibb.co/HPQzj9J

    How can I solve this issue?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Thanks for bringing this issue to us. I promise that our next version would have this issue addressed.

    As a quick solution:

    Kindly open the following file,

      /wp-content/plugins/automatic-youtube-gallery/public/templates/thumbnail.php

      Find the line (#47) below,

      '<img src="%s" class="ayg-thumbnail-image" alt="%s" %s/>',

      Replace it as,

      '<img src="%s" class="ayg-thumbnail-image" width="320" height="180" alt="%s" %s/>',

      Save the changes and check now.

      Hope this solved your issue!

      Thread Starter hbk747

      (@hbk747)

      @wpvideogallery Hello, I appreciate your prompt reply.

      I did as you stated (replaced the code in the file), cleared cache and checked on PSI but it still shows this error. Maybe I have to wait some more. You can check from your end as well.

      Plugin Contributor wpvideogallery

      (@wpvideogallery)

      Sorry, but I still don’t see the “width” and “height” attributes in the <img /> tag. Could you please double-check if they were added correctly?

      If the issue persists, please submit a support ticket at https://plugins360.com/support/ and include a link to this post. This will allow us to gather more details privately and investigate the issue further.

      Thread Starter hbk747

      (@hbk747)

      I think I added the code correctly.

      Please check this image https://ibb.co/ZffW42W

      Should I submit a support ticket then?

      Plugin Contributor wpvideogallery

      (@wpvideogallery)

      You’re correct, but I don’t see the new attributes when inspecting the page source. Are you using a caching plugin? If so, please try clearing your site cache and check again.

      Thread Starter hbk747

      (@hbk747)

      @wpvideogallery I previously cleared my cache plugin’s cache but that did not work but now I cleared Cloudflare’s cache and it worked!

      Thanks!

      Thread Starter hbk747

      (@hbk747)

      Hello,

      I reopened this because the issue was back on page speed insights so I checked the file again and weirdly enough it reverted back to this (line 47)

      '<img src="%s" class="ayg-thumbnail-image" alt="%s" %s/>',

      Why did this happen when I already saved the file? Is it possible the cache plugin does something?

      Please help

      Plugin Contributor wpvideogallery

      (@wpvideogallery)

      That’s unusual. Are you saying the code in the thumbnail.php file has been altered? A cache plugin wouldn’t typically cause this. Did you happen to reinstall or update our plugin after making the changes? I recommend editing the file again, and if the issue persists, please submit a support ticket on our website here: https://plugins360.com/support/. We’ll be happy to assist further!

      Thread Starter hbk747

      (@hbk747)

      @wpvideogallery Hello,

      Yes, it happened again. No, I did not update the plugin. The file reverts back even if I save it. I will submit a support ticket.

    Viewing 9 replies - 1 through 9 (of 9 total)
    • You must be logged in to reply to this topic.