• Resolved berniesamui

    (@berniesamui)


    Good morning,

    For UUID support: ampwp-46685014-baed-5b0a-9fd2-f2cc0ce82a21

    The main images of every editorial post on my blog are distorted (only AMP page), which was not the xas before. I can’t find the problem (I’m not a developer). I disabled different plugins but it doesn’t change anything.

    Can you help me please ?

    • This topic was modified 1 year, 9 months ago by berniesamui.

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

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

    (@milindmore22)

    Hello @berniesamui

    Thank you for contacting us, it seems you AMP page is not valid as it has custom javascript which might be added by the W3Total cache plugin

    You also need to activate the AMP extension provided by the w3 total cache plugin.

    1) Login as Admin.
    2) Goto Dashboard->Performance->Extensions
    3) Activate AMP extension.

    (Screenshot)

    Regarding your issue it seems you are using native <img> tag, which adds some CSS that adds images with height so you see stretched out images.

    I will recommend by unchecking the native html support

    goto AMP->Settings->Other-> uncheck “Use native HTML image tag

    recheck AMP page.

    Or

    Add the following code snippet in your child themes functions.php or in a custom plugin

    add_action( 'amp_post_template_css', function ( $amp_template ) {
    	// only CSS here please...
    	?>
    	img.lazy { height:auto; }
    	<?php
    } );

    We hope this helps!

    Thread Starter berniesamui

    (@berniesamui)

    It worked ??

    Thank you so much Milind More you are a champ ??????

    The image is displayed correctly again.

    Thanks again ??????

    Bernie

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Distorted main image’ is closed to new replies.