• Resolved philipnet

    (@philipnet)


    Hi Scott,

    I’ve recently doing some R&D into the AMP plug-in https://en-gb.wordpress.org/plugins/amp/ and Simply Static.
    Initially everything looked good – but then I came across a few posts on our site that didn’t have any images. The image files where there on the WordPress site, but not in the Simply Static output.

    Digging into it, it looked like Simply Static wasn’t picking up the images/image-set being referenced.
    After a bit of Google-ing – I found https://wordpress.org/support/topic/responsive-images-with-srcset/ and started looking at class-simply-static-url-extractor.php .

    I’ve subsequently added:
    ‘amp-img’ => array( ‘src’, ‘srcset’ ),
    into the $match_tags array in class-simply-static-url-extractor.php – and re-ran Simply Static.
    I was quite pleased that fixed my problem 🙂 and the missing images are now included in the Simply Static output.

    Please could you consider this for future inclusion?
    The amp-img tag is only used on AMP pages so it should work on for all plug-ins that implement AMP support.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘AMP and Simply Static’ is closed to new replies.