Site logo

[Resolved] Image not properly showing in AMP

Home Forums Support [Resolved] Image not properly showing in AMP

Home Forums Support Image not properly showing in AMP

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1514909
    Jayanta

    Hi,

    When I am enabling AMP (along with the AMP for GeneratePress plugin), the top WPSP section is not showing properly. The problem is not there when AMP is disabled.

    The problem is showing (with AMP enabled) in both mobile and desktop.

    #1515288
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    How can we view the AMP version? ?amp doesn’t seem to be working.

    Let us know 🙂

    #1515479
    Jayanta

    Hi Tom, thanks for your reply. I deactivated the AMP plugin as it was not showing nicely. Activated it again. You may view the AMP version here

    Everything else seems okay. Just the top WPSP thing.

    #1516047
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    .wpsp-grid amp-img.amp-wp-enforced-sizes[layout="intrinsic"] > img {
        object-fit: cover !important;
    }
    #1516063
    Jayanta

    Hi David,

    The code works perfect! Thank you so much. Now the website is AMP-First (Native AMP). Who says GeneratePress isn’t good for magazine layout! 🙂

    #1516382
    David
    Staff
    Customer Support

    Awesome – glad to be of help!

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