Embedded tweets are a great way to showcase tweets on your website or blog. With just a few simple steps, you can embed a tweet and center it in your WordPress website or blog.

First, find the tweet that you want to embed. Once you’ve found the tweet, click on the three dots located in the upper-right corner of the tweet. This will open a menu with a list of options. Select “Embed Tweet” from the list of options.

Next, you’ll be presented with a block of code. Copy this code and paste it into the HTML editor of your website or blog. This will embed the tweet directly into your content.

The full embed code will look something like this:

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">What Is A Cyber Attack? And How To Prevent It <a href="https://t.co/2Gx8oiTJ1q">https://t.co/2Gx8oiTJ1q</a></p>&mdash; Abijita Foundation (@OfficialAbijita) <a href="https://twitter.com/OfficialAbijita/status/1626322517471244290?ref_src=twsrc%5Etfw">February 16, 2023</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 

To center the tweet

  1. In the HTML, do a Ctrl F search for twitter-tweet to find your embedded tweet
    • Find the first row of the embedded tweet, where it reads <blockquote class=”twitter-tweet”>
    • Insert tw-align-center after twitter-tweet, and be sure to include a space after the word tweet 

    The final product will read: <blockquote class=”twitter-tweet tw-align-center”>

    Final Code for the Centered Embedded Tweet:

    <blockquote class="twitter-tweet tw-align-center"><p lang="en" dir="ltr">What Is A Cyber Attack? And How To Prevent It <a href="https://t.co/2Gx8oiTJ1q">https://t.co/2Gx8oiTJ1q</a></p>&mdash; Abijita Foundation (@OfficialAbijita) <a href="https://twitter.com/OfficialAbijita/status/1626322517471244290?ref_src=twsrc%5Etfw">February 16, 2023</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 

    And here’s how it will look on your page:

    And that’s it! With just a few simple steps, you can embed a tweet and center it in your WordPress website or blog. Embedded tweets are a great way to showcase tweets that are relevant to your content, and they can add an extra layer of engagement and interactivity to your website.

    READ
    ChatGPT is Down, OpenAI Working on Resolution