[Resolved] center Instagram and twitter embeds

Home Forums Support [Resolved] center Instagram and twitter embeds

Home Forums Support center Instagram and twitter embeds

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1972211
    Sukalery

    Hello GP Team,

    How could I center Instagram and Twitter embeds automatically?

    right now I’m using <center> to do it manually.

    website in the attachment.

    Thank you.

    #1972229
    Ying
    Staff
    Customer Support

    Hi Sukalery,

    Try this CSS:

    iframe.instagram-media.instagram-media-rendered, .twitter-tweet.twitter-tweet-rendered {
        margin-left: auto !important;
        margin-right: auto !important;
    }

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

    #1972314
    Sukalery

    Thank You very much Ying, it’s working nice.

    have a good day.

    #1972341
    Ying
    Staff
    Customer Support

    You are welcome 🙂 Have a nice weekend!

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