Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @zotezo

    Our primary investigation suggests that you are using the Yoast SEO plugin which generates structured data. so asking this question on the Yoast support forum will be the best approach.

    Your structured data seems valid, however it is recommended to add 1200 pixels wide primary image.

    Thread Starter zo

    (@zotezo)

    In the code we have written like this,is it can be the reason?

    <div class="product-images">
    					<a href="#">
    						<?php $url = wp_get_attachment_url(get_post_thumbnail_id($post->ID), 'full'); ?> 
        
    <?php if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) { ?>
    							<amp-img
      alt="<?php echo the_title(); ?>"
      src="<?php echo $url ?>"
      width="200"
      height="200"
    >
    </amp-img>
    							 <?php } else { ?>
    
    <img src="<?php echo $url ?>" alt="<?php echo the_title(); ?>"/>
    <?php //echo the_post_thumbnail( array(500,500) ); } ?>
    							 <?php } ?>
    					</a>
    				</div>
    			
    Plugin Support Milind More

    (@milindmore22)

    @zotezo

    The code seems fine, you may want to refer to this article to understand structured data generated by Yoast and this article to modify schema as per your need.

    Thread Starter zo

    (@zotezo)

    Why suddenly issue is happening we neither change the code nor change any yoast setting.But issue happens.

    How to fix the issue?

    • This reply was modified 3 years, 11 months ago by zo.
    Plugin Support Milind More

    (@milindmore22)

    Why suddenly issue is happening we neither change the code nor change any yoast setting.But issue happens.

    it will be the best approach to ask this question in Google Search Console Support

    How to fix the issue?

    Please check my previous comment, As the structured data is generated by the Yoast SEO plugin we can’t help you any further, please contact the Yoast SEO plugin’s Support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sudden AMP Warning in GSC related to Image size smaller than recommended size’ is closed to new replies.