• Resolved Natalya

    (@nalitana)


    Hello! After updating the plug-in, an error appeared on the AMP page, tell me how to solve it? My site

    <style amp-custom>body{font:16px/1.4 Sans-serif}a{color:#312C7E;text-decoration:none}.clearfix,.cb{clear:both}.alignleft{margin-right:12px;margin-bottom:5px;float:left}.alignright{float:right;margin-left:12px;margin-bottom:5px}.aligncenter{text-align:center;margin:0
    auto}#statcounter{width:1px;height:1px}.amp-wp-content, .amp-wp-title-bar
    div{max-width:1000px;margin:0
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    @nalitana

    Thank you so much for using the plugin.

    The error is coming because you have made some changes in the css and use ‘.i-amphtml-fill-content’ which is not allowed. You should not be using any css classes that are dynamically generated. Use the normal CSS classes instead.

    “contains ‘CSS i-amphtml- name prefix’, which is disallowed.”

    Regards,
    Ahmed

    Thread Starter Natalya

    (@nalitana)

    Thank you, Ahmed! I found my mistake, but now I do not know how to change the display of thumbnails. They look very ugly. How can I prevent miniatures from stretching in a container? screenshot

    I did it like that and it turned out, it’s wrong.

    .i-amphtml-fill-content {
        width: 0px;
        min-width: 100%;
        height: inherit;
        min-height: 100%;
    }
    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    @nalitana

    Try perhaps

    .home-post_image img {
        height: inherit;
    } 
    Thread Starter Natalya

    (@nalitana)

    Many thanks, I will do it! I thought you did not answer, I did not receive an email notification.

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @nalitana,

    Sure, let us know if you face any more issues.

    Regards
    Marqas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Google swears…’ is closed to new replies.