Storefront Notes

How-to's · Shopify · 3 min read

How to Add an X (Twitter) Feed to Your Shopify Website

Short answer

Get embed code from X's publish tool (publish.x.com) for a post or profile timeline, then in the Shopify theme editor add a Custom Liquid or Custom HTML section where you want it and paste the code. Save and preview on mobile. Feed apps are an alternative if you want styled, filtered layouts without code.

Showing your X (formerly Twitter) activity on your store can add social proof and keep the site feeling current. It can also slow pages down and show off an account you rarely post on. Here's how to do it well.

Decide what you want to show

There are three options, and they behave differently:

Embed type Good for Reliability
Single post A customer shout-out, a launch announcement, press mention Reliable
Profile timeline Showing ongoing activity Less reliable for logged-out visitors
App-built feed Styled grids, filtering by hashtag Depends on the app and X's API access

For most stores, embedding a handful of hand-picked posts beats a live timeline. You control what appears and avoid showing old or off-brand posts.

Method 1: Embed with X's publish tool

  1. Go to publish.x.com.
  2. Paste the URL of a post or your profile.
  3. Choose "Embedded Post" or "Embedded Timeline."
  4. Adjust options such as theme (light or dark) and width.
  5. Copy the code.

Add it to Shopify

  1. Go to Online Store > Themes > Customize.
  2. Navigate to the page where the feed should appear (homepage, a product template or a custom page).
  3. Click Add section and choose Custom Liquid (some themes call it Custom HTML).
  4. Paste the embed code.
  5. Save and preview.

On a product page, add a Custom Liquid block inside the product section instead.

A dedicated "Community" page

Instead of crowding the homepage, create a page under Online Store > Pages called "As seen on X" or "Community." Assign it a template with a Custom Liquid section and embed several posts. Link to it from the footer.

Method 2: Use a feed app

Social feed apps in the Shopify App Store can display posts in grids or carousels, filter by hashtag and match your theme styling. Before installing:

  • Check recent reviews for comments about X support. Access to X's API has changed several times and some apps dropped X entirely.
  • Look at pricing. Many charge monthly.
  • Test page speed before and after.

Performance tips

  • Keep embeds below the fold. Scripts that load high on the page delay the first view.
  • Limit the number. Three to five posts is plenty.
  • Check mobile. Wide embeds can overflow small screens.
  • Run PageSpeed Insights after adding the feed and compare scores.

When a feed helps (and when it doesn't)

A feed helps when your X account is active, on-brand and shows customers or useful content. It hurts when the last post is eight months old, the account mostly retweets unrelated content or replies to complaints dominate the timeline.

If X is a real part of your marketing, the feed is the least important part. What matters more is using X to launch products, handle customer questions in public and share behind-the-scenes content. Our guides to using social media for ecommerce and launching a product online go deeper.

Keep the content fresh

If you embed individual posts, review them every few months. Swap out old announcements, expired offers and anything that no longer matches your products. A small "last updated" habit keeps the section from looking abandoned, which matters because visitors read stale social content as a sign the business isn't active.

Alternatives that convert better

If your goal is social proof, product reviews often do more for conversions than a social feed. See how to import reviews into Shopify. And if you want visitors to follow you, a simple "Follow us on X" link in the footer with your handle is lighter and clearer than any widget.

Frequently asked questions

Does embedding X posts slow down my Shopify store?

Embeds load external scripts, so they can add load time. Place them lower on the page or on a dedicated page rather than above the fold on your homepage.

Can I show X posts on product pages?

Yes. Embedding individual posts that mention a product works well as social proof. Add a Custom Liquid block to the product template.

Do profile timelines still work on embeds?

Embedded timelines have been less reliable since X changed its platform, and some show limited posts to logged-out visitors. Embedding individual posts is more dependable.

Sources and further reading

Platform features, prices and policies change. Check the official help pages linked above before you act on a detail that matters to your store.

Related guides