On this page
What this issue is
Twitter cards are meta tags in the <head> of a page. They control the preview (image, title, description) that appears when someone posts your URL on X, formerly Twitter. The key tag is twitter:card. It picks the layout, such as summary (small square image) or summary_large_image (wide image).
Why it costs you leads or sales
A link with a large image and a clear title takes more space in a feed and looks more trustworthy than a bare URL. If your campaigns, launches, blog posts or influencer shares go to X, a plain preview can mean fewer clicks. The effect is usually small, which is why this is a low-impact issue, but it is cheap to fix.
- Link sharedSomeone posts your URL on X
- X fetches pageReads meta tags in the head
- Card tagstwitter:card missing
- Rich previewPlain or minimal link
- Click-throughFewer visits to your page
Without twitter:card, the preview step is weak and fewer people click through.
Tags missing
- Bare URL or small, inconsistent preview
- Image may be missing
- Looks less trustworthy in a feed
Tags present
- Large image card with title
- Description shown where X supports it
- Same look every time the page is shared
How to check if your site has it
View the page source
Open the page, right-click and choose View page source. Search (Ctrl+F or Cmd+F) for
twitter:.Look for twitter:card
You should see
<meta name="twitter:card" content="summary_large_image">. If there is no result, the tag is missing.Check the supporting tags
Look for twitter:title, twitter:description and twitter:image, or matching og:title, og:description and og:image as fallbacks.
Check the rendered HTML too
Some plugins add tags with JavaScript. In browser DevTools, Elements tab, search the head. X's crawler does not run JavaScript reliably, so tags must be in the raw source.
Test a key page
Check your home page, a blog post and a landing page. Templates often differ.
How to fix it
The minimum is twitter:card. For best results add title, description and image too, or make sure the og: versions exist. Use an image at least 1200x630 pixels (2:1 or 1.91:1 works well for large cards) that is publicly reachable.
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Your page title">
<meta name="twitter:description" content="One clear sentence about the page.">
<meta name="twitter:image" content="https://www.example.com/images/share-1200x630.jpg">
<meta name="twitter:image:alt" content="Short description of the image">Use your SEO plugin
In Yoast SEO, go to Settings > Site features (or Social) and make sure Twitter card data is on, then pick the card type. In Rank Math, go to Titles & Meta > Global Meta or Social Meta and set the Twitter card type. All in One SEO has a similar Social Networks > Twitter tab.
Set per-page images
Edit a page, open the plugin's Social tab and set a share image and title if you want to override the defaults.
Clear caches
Purge your caching plugin and CDN so the new tags are in the served HTML.
Check your theme
Most current themes output Open Graph tags through the social-meta-tags snippet, but twitter:card handling varies by theme. View source to see what your theme outputs.
Edit theme.liquid or the social snippet
In Online Store > Themes > Edit code, open the snippet that holds social meta tags (often social-meta-tags.liquid) or layout/theme.liquid, and add the twitter:card line inside the head. Back up the theme first.
Set a default share image
In Online Store > Themes > Customize > Theme settings > Social media (name varies by theme), or use the product or page image.
Open page settings
In the Pages panel, hover over a page and click the gear icon. Scroll to Open Graph settings and set title, description and image.
Add the card tag as a custom tag
Under Custom code in the page settings (or Site settings > Custom code > Head code for every page), paste
<meta name="twitter:card" content="summary_large_image">. Publish the site.
Set social share details
In the Editor or Wix dashboard, open the page's SEO settings and find Social share. Add a title, description and image.
Check the source
Wix controls most head tags. After publishing, view source to confirm twitter tags appear. If not, add a custom meta tag under Marketing & SEO > SEO Settings > Advanced SEO > Custom meta tags (available on supported plans).
Set a social image
Go to Pages, click the gear next to a page, open Social Image and upload an image. Squarespace outputs Twitter card tags from this and from SEO title and description.
Add code if tags are missing
Under Settings > Advanced > Code Injection > Header, paste the twitter:card tag. Note this applies to all pages.
Avoid it for this
Do not inject meta tags with a GTM Custom HTML tag. X's crawler does not run JavaScript reliably, so the tags may never be seen. Add them in your CMS or template instead.
Set page meta and image
In the funnel or website builder, open the page Settings > SEO & Meta tags and set title, description and the social preview image.
Add custom head code
In the page's Tracking Code > Header Code area, paste the twitter:card meta tag, then save and publish.
Add tags in the template
Put the meta tags in the shared head template or layout so every page gets them, filling title, description and image per page from your data.
Render on the server
Make sure the tags are in the initial HTML response, not added by client-side JavaScript.
How to confirm it's fixed
Re-check the source
Load the live page, view source and search for
twitter:card. Use a private window so you skip cached versions.Use a card preview tool
X's old Card Validator has been retired, so use a third-party social preview checker, or compose a draft post on X with your URL and look at the preview. Do not publish the draft.
Confirm the image loads
Open the twitter:image URL directly. It must load without a login and not be blocked by robots.txt or hotlink protection.
Allow for caching
X caches previews. Older shares may keep the old look for a while, and a new URL or slightly changed link can show the fresh card sooner.
How to prevent it happening again
- Put the tags in the shared template, not page by page
- Add a social-tags check to your launch checklist for new templates and landing pages
- Re-check source after theme, SEO plugin or builder changes
- Keep share images at 1200x630 or larger, public and under a few MB
- Test one page of each template type after each site release
How FunnelGuard handles this
FunnelGuard does not check for missing Twitter card tags today. It is a possible future check. FunnelGuard is built to watch the parts of your funnel that bring in leads and sales: it runs your real journeys such as lead forms, checkouts and booking buttons, checks the tracking hits sent to ad and analytics platforms, and confirms test leads arrive in your inbox and CRM.
Questions people ask
Why is my link preview not showing on X (Twitter)?
The most common reasons are a missing twitter:card tag, a missing or unreachable image, or a cached old preview. View your page source and check for twitter:card and an image tag. Also make sure the image URL loads publicly.
Do I need Twitter card tags if I already have Open Graph tags?
You should still add twitter:card. X falls back to og:title, og:description and og:image when twitter: versions are missing, but it needs twitter:card to choose a layout such as a large image card.
Which twitter:card value should I use?
Use summary_large_image for most pages, as it shows a wide image above the title. Use summary if you only have a small square logo or image.
What size should my Twitter card image be?
Aim for about 1200x630 pixels, a roughly 2:1 ratio, in JPG or PNG, kept to a modest file size. The image must be publicly accessible and not blocked by robots.txt or hotlink protection.
How do I add Twitter card tags in WordPress?
Turn on Twitter card output in your SEO plugin, such as Yoast SEO, Rank Math or All in One SEO, and choose the card type. Then set a default share image and clear your caches.
Is the Twitter Card Validator still available?
X retired the old Card Validator tool. You can check by viewing your page source for the tags, using a third-party social preview checker, or drafting a post with your link and looking at the preview.
Does FunnelGuard check Twitter card tags?
No. FunnelGuard does not check Twitter card tags yet; it is a possible future check. It monitors funnel journeys, tracking hits and test lead delivery instead.
Why does X still show an old image after I fixed the tags?
X caches link previews, so earlier shares may keep the old image or title for a while. Check the source to confirm the fix is live, then try a new draft post or a slightly different URL to see the updated card.
Related issues
- SEO-233og:title / og:description missingFix guide
- SEO-234og:image missing, broken or wrong sizeFix guide
- SEO-237Shared links show a cached old image or titleFix guide
- SEO-238og:image blocked by robots.txt or hotlink protectionFix guide
- SEO-239Same OG image and title on every pageFix guide
- SEO-235og:url points to staging or a different pageFix guide