Need help aligning Twitter embeds in center

Looking for a way to align all the twitter embeds in the center on a WordPress site.

place embed inside <div style='text-align:center'>YOUR_CODE</div>

To centre a Tweet,

  1. Get embed code

  2. Find

<blockquote class="twitter-tweet" data-lang="en">
  1. Replace to
<blockquote class="twitter-tweet tw-align-center" data-lang="en">

Done.

If you want to do globally, apply below custom CSS

.twitter-tweet {margin:auto;}

This is much better

1 Like