Hide media in tweets

Twitter embeds are cool, just like everything else on WordPress.com. You just paste the link to a tweet and the editor auto-magically embeds the twitter card.

While this is great, WordPress.com does a bit more that I don’t like: it also includes the images in the tweet. I don’t like it because the image increases the size of the twitter card.

When I published my previous post, I wanted to just post the tweet without media.

What I wanted is this:

What I got by default is this:

I wanted a way to hide images in the tweets. But I wasn’t sure if that is possible. So I scouted the Twitter Embeds support guide and found hide_media=’true’ option which hides the media item from the linked site.This is exactly what I am after. Besides its description, this option also hides the media in the tweet like an embedded image.

Here is the shortcode that got me what I wanted:

[tweet https://twitter.com/WPDiscover/status/697842590951931904 hide_media='true']

This isn’t as slick as just pasting the link to the tweet, but with a bit of editing, I get a clean result.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.