Skip to content
NewProduct Q&A: shoppers ask on your product page and get your answers.See how it works
IdukkiIdukki
Embedding

How to Embed a Tweet on a Website (And What Replaced Moments)

The X/Twitter embed code and the no-JavaScript alternative. Why Moments embeds are gone, and how to show curated tweets without a tracking script.

A customer posts glowing praise about you on X. You want it on your homepage, so you grab the embed code. Then a visitor with a tracker blocker sees a blank hole where the tweet should be.

Embedding a single tweet is still one of the easiest embeds on the web. X generates the code and it works everywhere. Everything around it has changed. Moments are gone, and the widgets script carries tracking baggage. Often what a site really wants is a curated, brand-safe wall of posts. The quick answer comes first, then the honest trade-offs.

In this article

How should this post appear on your site?

Start here

What job does the post do?

  • One quote in an article

    Use the embed snippet

    Share icon, then Embed post. One script tag serves every tweet on the page.

    • You care about tracking and load time: Keep the blockquote and delete the script tag.
  • Ongoing social proof

    Build a moderated wall

    Collect posts by handle or hashtag, moderate them and show them in a widget you control.

  • You wanted a Moment

    Moments are gone

    Curate on your own side with a wall or feed widget.

How do I get a tweet's embed code?

On any public post, click the share icon and choose Embed post. That opens publish.twitter.com with your snippet ready. It looks like this:

html
<blockquote class="twitter-tweet">
  <a href="https://twitter.com/user/status/1234567890"></a>
</blockquote>
<script async src="https://platform.twitter.com/widgets.js"
  charset="utf-8"></script>

The script upgrades the blockquote into the full interactive card: avatar, media, like and repost counts. One script tag serves every embedded tweet on the page. WordPress, Webflow, Squarespace and Ghost also accept a bare post URL on its own line. They convert it via oEmbed, as they do for TikTok.

Can I embed a tweet without the script?

The widgets.js script is a third-party script, with the network and privacy cost that implies. It phones home to X. Visitors with tracking blockers see a blank hole where the tweet should be. The lightweight alternative is to keep the blockquote and delete the script tag. You lose the interactive card. You keep the quote text and the link, styled by your own CSS. For a testimonial or press quote, that is often enough, at zero performance cost.

What replaced Twitter Moments?

Moments, the curated tweet-collection format, were quietly wound down. The creation tools are gone. Old Moment embeds no longer render as collections. Searching for how to embed one? The format you remember no longer exists.

Curation on your side of the fence replaced it. Collect the posts you want: your mentions, a campaign hashtag, customer praise. Moderate them and render them as a wall you own. That keeps working when X changes its embed rules. The content is collected via API and shown by your widget. Nothing is iframed from X. The mechanics are in the companion guide to embedding an X/Twitter feed, and the multi-network version of the same idea is the social media aggregator guide.

53%of consumers say they trust content from real customers more than brand-produced content (representative range, Bazaarvoice Shopper Experience Index)

How do I turn tweets into a wall of proof?

A single embedded tweet is a quote. A moderated wall of them is social proof that compounds. Press mentions, customer praise and campaign posts sit in one auto-updating surface. Idukki collects X posts by handle or hashtag and runs them through moderation. An open hashtag cannot put a stranger's joke on your homepage. The posts mix with Instagram, TikTok and YouTube content in one layout. See the X/Twitter widget for formats, or compose one in the widget builder without signing up.

Commerce sites have one more step. Tag posts that show products, so the wall sells. That is the same product-tagging flow the shoppable video layer uses, applied to social posts.

FAQs

  • How do I get the embed code for a tweet?

    Click the share icon and choose Embed post. Or paste the post URL into publish.twitter.com. Both give the same blockquote + script snippet, ready for any HTML page or CMS embed block.

  • Can I embed a tweet without JavaScript?

    Yes. Keep the blockquote from the embed snippet and delete the script tag. The tweet renders as a styled quote with a link in place of the card. It loads instantly and sends no data to X.

  • Why does my old Twitter Moment embed no longer work?

    X deprecated Moments; the creation tools were removed and legacy Moment embeds stopped rendering as collections. To show a curated set of posts today, collect them via the API. Show them in a wall or feed widget you control.

  • Do embedded tweets affect page speed?

    The widgets.js script and per-tweet iframes add third-party requests on page load. Tracking blockers can leave gaps where tweets should be. For several tweets, a script-free blockquote or a lazy-loaded wall widget is meaningfully lighter.

Sources

  1. 1X publish embed tool · Official embed-code generator for posts and timelines
  2. 2Bazaarvoice Shopper Experience Index · Consumer-trust figures (representative ranges)
#twitter#x#embed#social-proof

Continue reading

1 piece in this cluster

More on this topic. Each of these articles links back here.

More from Rohin Aggarwal