Embed a Tweet on Your Blog or Website

It’s easy to share a tweet on your library blog or website. You might want to do this if you’re writing about Twitter itself, or if there’s a tweet on your library’s Twitter account that you want to share. Or you might see a tweet on someone else’s account that you want to share. You can just quote the words, of course. You can just quote the words, but it’s easy and effective to embed the tweet directly in a post or page. This presents it in the Twitter context, with all the metadata including date, time and location information, with all links active, including Favorite, Retweet and Reply.

Here are two examples, taken from my personal Twitter account, the first just a plain tweet without an image, and the second with an image:


You’ll find the Embed option under More on the Twitter website: just copy and paste the code and added it to post or page. If you’re using WordPress, it’s even easier. First, find the URL for the individual post by clicking on the date/time stamp for the post. (For new posts, it will give a number of minutes or hours since it was posed, for example, 30m or 2h, otherwise it will have a date, like 18 Aug. Copy the link location or follow the link to get the URL, which will look like this:

https://twitter.com/ethomsen/status/369125619230969857

Paste it on a new line in a post or page, save the draft and click Preview to see how it looks.

This is a useful WordPress feature, something that formerly required the use of a plugin. But there are times when you want to show the URL for a tweet without having it embedded in the post, as I did above. Just make the URL bold or enclose it in the <code></code> tag to turn off the embedding.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>