Site logo

[Support request] AMP Caption Alignment

Home Forums Support [Support request] AMP Caption Alignment

Home Forums Support AMP Caption Alignment

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1531233
    Mark

    Hey guys, I know you’re not AMP experts but I believe you can help me with a quick fix.

    AMP for WordPress is installed.
    AMP for GeneratePress is installed.

    The AMP pages work great except for the caption under my photos. The caption drops into the paragraph or header below it.

    Unless you guys have a better idea, I think the easiest fix would be to simply remove captions on mobile. If you agree, would you mind passing on the appropriate CSS to add? The example page added below but please view on mobile.

    #1531366
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS to remove caption on mobile:

    @media (max-width: 768px) {
        .wp-block-image figcaption {
            display: none !important;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps 🙂

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