Home Forums WoodMart support forum AMP Featured image problem

AMP Featured image problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #232189

    carolynwin
    Participant

    All AMP posts contain blurry featured images at the top of the page which is a base 64 encoded image (which looks to be about 10px x 10px). This 10px x 10px featured image is stretched to fit the image area, resulting in a blurry image.

    Example attached.

    #232221

    Hello,

    I have visited your website. Sorry, but we could not help you with this because we provide support services within our theme and this is out of our scope.

    AMP is the plugin functionality that you are using and our theme doesn’t influence.

    Probably the problem with blurred images could be caused by our theme lazy loading for images that you can try turning it off from Theme Settings >> Performance >> Lazy Loading.

    Screenshot for Clarification: https://ibb.co/xDQYfVH

    Best Regards.

    #232316

    carolynwin
    Participant

    Turning off lazy loading fixes the issue, but we don’t think that slowing down the entire website is a good solution.

    You provided a fix for rss feeds for this exact same issue (see code below).

    Would it be possible to send code to turn off lazy loading for the POST featured image only?

    if( ! function_exists( ‘woodmart_lazy_loading_rss_deinit’ ) ) {
    function woodmart_lazy_loading_rss_deinit() {
    if ( is_feed() ) {
    woodmart_lazy_loading_deinit(true);
    }
    }
    add_action( ‘wp’, ‘woodmart_lazy_loading_rss_deinit’, 10 );
    }

    #232332

    Artem Temos
    Keymaster

    There is a conditional function in WordPress for rss feeds called is_feed. It can be used to create such a fix. As for the AMP plugin, you can contact them and ask which function can be used to detect if the AMP page is currently displaying. Then, we will be able to give you such a code.

    Kind Regards

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)