[Support request] Pages are not optimized for mobile

Home Forums Support [Support request] Pages are not optimized for mobile

Home Forums Support Pages are not optimized for mobile

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2261474
    Vladimir

    Hi team,
    Google webmaster shows me, that some pages on my web-site with image size more than 700px are “not optimized for mobile”. I have set Max Width and Max Height 700px for Medium size and expected, that for mobile devices GeneratePress would show Medium size images automatically, but it doesn’t work.
    Could you please help me with this problem? What I should change in CSS?
    Thank you in advance!

    #2261769
    Ying
    Staff
    Customer Support

    Hi Vladimir,

    that for mobile devices GeneratePress would show Medium size images automatically,

    No, it won’t.

    Those images are manually inserted using WP’s image block, and GP doesn’t control WP’s core block.
    You’ll need to manually select the medium size for image blocks.

    Or you can try this PHP snippet:
    https://generatepress.com/forums/topic/too-high-lcp-on-mobile-devices/page/2/#post-2105087

    When the screen is narrower than 420px, it chooses the size which is the closest to 300px.

    Adding PHP: https://docs.generatepress.com/article/adding-php/

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