← All guides

CMS Guide

Squarespace OG Images: Where to Set Them and What Squarespace Prints

Where Squarespace sets the site-wide and per-page social sharing image, the tags it prints and how its image CDN rewrites your file, why X shows a small card, and what code injection can and cannot fix.

Where Squarespace sets the social image

Squarespace has two kinds of social sharing image, and both are settings, not code. Squarespace's help center describes them this way:

  • The social sharing logo represents the whole site. You open the Social Sharing panel, upload an image or pick one from your library, and save.
  • The Alternate Social Sharing Image represents one page or one collection item: a blog post, a product, an event, or a portfolio sub-page in version 7.1. It is not available for gallery images or album tracks.

For a page, the path is the Pages panel, hover over the page title, click the gear icon, open the Social tab, add the image and save. For a collection item, open the blog, store, calendar or portfolio page in the Pages panel and open the item's settings: Edit for a blog post or event, a double-click for a product, ••• then Settings for a portfolio sub-page. Its Social tab takes the image. The article says to do this on a computer, not in the Squarespace app, though the Page settings article lists the social settings as editable in the app.

The Social tab also shows a Social Preview, which Squarespace labels as how the page may look when shared. Treat it as an estimate: Squarespace's article says the social network decides what appears.

Which image wins

The help center's article on how content displays in social posts gives an order for each kind of page. It is a list of fallbacks, and the first one that exists is used:

  • Layout pages, collection pages and indexes: the Alternate Social Sharing Image, then the social sharing logo, then the site logo (home page only), then whatever the social network guesses.
  • Collection items: the Alternate Social Sharing Image (blog posts, products and events only), then the item's featured image, then the first product image (products only), then the social sharing logo, then the social network's guess.
  • Gallery page images: always the social sharing logo.
  • Cover pages: the Alternate Social Sharing Image, then the social sharing logo. With neither, no image is used.
  • Campaigns: the header image or logo, then the first image outside the header, then the Squarespace badge.

Version 7.1 pages do not use featured images at all. Squarespace says the way to set the image a page shares is the alternate social sharing image, and that a banner is a section background image instead. A 7.1 page with no alternate image therefore falls to the social sharing logo, however good the page's own hero is.

Every problem below follows from this order and from what Squarespace prints for it. Each names the finding in the checker or the site audit that reports it.

What Squarespace prints in the head

The help center does not document the tags, so I read them. I fetched four public Squarespace pages as a link-preview crawler would: the home page of squarespace.com (template version 7), the home page and a blog post of a 7.1 site, and a blog post on a 7.0 site. These are other people's sites, so what follows is what their settings produced, not a guarantee for yours. The tags were the same shape on all four:

<meta property="og:type" content="article"/>
<meta property="og:image" content="http://static1.squarespace.com/static/<site id>/t/<id>/<timestamp>/card.png?format=1500w"/>
<meta property="og:image:width" content="1500"/>
<meta property="og:image:height" content="785"/>
<meta itemprop="thumbnailUrl" content="http://static1.squarespace.com/static/.../card.png?format=1500w"/>
<link rel="image_src" href="http://static1.squarespace.com/static/.../card.png?format=1500w" />
<meta name="twitter:image" content="http://static1.squarespace.com/static/.../card.png?format=1500w"/>
<meta name="twitter:card" content="summary"/>

Four details matter for what follows.

  • The image URL is http://, on static1.squarespace.com, and it ends in ?format=1500w. The page itself was served over HTTPS. Requesting that URL gets a 301 to images.squarespace-cdn.com, with the same format value, and that answers 200. You cannot edit this tag from a setting.
  • The same URL is printed four times: og:image, twitter:image, a thumbnailUrl itemprop and a link rel="image_src". One setting feeds all of them.
  • og:image:width and og:image:height are present, and carry the stored file's own size. They were 1200 by 630 on squarespace.com's home page, 1500 by 785 on the 7.0 blog post, and 1000 by 1103 on the 7.1 site's home page, a tall image used as it is.
  • twitter:card was summary on all four, including the pages whose image is 1200 or 1500 pixels wide. Problem 3 is about that.

The server answered with server: Squarespace. properOG's audit detects Squarespace from that header, the generator tag or the Static.SQUARESPACE_CONTEXT script, so on a Squarespace site its image_missing fix names the settings in this guide and links it.

Problem 2: the card is cropped, soft or the wrong shape

Symptom

The headline is cut off, the image is a thin strip, or a square logo sits in the middle of a wide card.

Cause

Squarespace passes your image through as it is. On the 7.1 home page I read, the stored image was 1000 by 1103 pixels, and the tags said so. The help center says almost nothing about a size: the one number is that an image shared on Facebook should be at least 200 by 200 pixels, with a note that Facebook changes its preferred sizes often and that a cropped image is worth retrying at other sizes. It names no ratio for the social sharing logo or the alternate image.

What the platform does with a tall or square image is the platform's choice. A wide image is the safe shape: properOG's checker scores a 1200 by 630 image, about 1.91:1, as the target, and the Facebook link preview guide covers the sizes Facebook documents.

The delivery side does not enlarge a small file. The squarespace.com image, uploaded at 1200 by 630, was served at 1200 by 630 under a URL that says format=1500w. A card narrower than 1500 pixels stays narrower, and a 1200 pixel card is fine, but a 600 pixel one is served at 600.

Fix

Upload a 1200 by 630 image, flat artwork saved as PNG so the text stays sharp (the help center recommends PNG for images that contain text, because text in JPEG often blurs). Keep the title and the logo in the middle of it, away from the edges, in case a platform crops. Upload it as the alternate image or the social sharing logo, whichever the page uses.

Detected by

The checker's dimensions check, which reads "Works but 1200×630 is ideal" or "Too small" for anything else, and the audit's image_undersized finding for cards narrower than 1200 pixels. Both read the og:image:width and og:image:height that Squarespace prints, or the file itself when they are absent.

Problem 3: X shows a small square card

Symptom

On X the link shows a small thumbnail beside the title, not a wide image above it, although the same URL shows a wide card on Facebook and LinkedIn.

Cause

All four heads printed <meta name="twitter:card" content="summary">, which is the small card, next to a twitter:image of the right size. Squarespace's article on social posts mentions enabling Twitter Cards to add information such as product images and prices, but I did not read an article that says how to switch the card type, and I did not find a setting that does. What I did find is a site that overrides it: squarespace.com's own head contains the standard summary tag and two more twitter:card tags, written with property instead of name, that say summary_large_image, one before it and one after. Those two did not come from the settings, so the override is deliberate.

Fix

If you are on a plan with code injection (see below), add the large card tag to the site-wide Header field:

<meta name="twitter:card" content="summary_large_image">

This puts two twitter:card tags in the head, because Squarespace's own stays. I could not test which one X reads when they disagree. squarespace.com ships both, so it is a pattern Squarespace uses, but check the result on X before you rely on it: paste the URL into a post composer, which the help center says previews the card without publishing. If you do not have code injection, the card stays small, and the practical answer is a social image that still works as a square crop.

Detected by

The audit's twitter_card_small finding, on every page whose card is declared summary beside an og:image, and the checker's twitter_card_match advisory, which reads "Image is 1500×785 but twitter:card is 'summary'" when the image is 600 pixels wide or more. On a Squarespace site expect it on every page. The X card guide covers the card types.

Problem 4: Squarespace rewrote my image

Symptom

The URL in the page source is not the file you uploaded. It has a different host, a ?format= suffix, and a .png name that downloads as something else.

Cause

This is Squarespace's image processing, described in its article on formatting images. For each upload it creates up to seven versions, at widths of 100, 300, 500, 750, 1000, 1500 and 2500 pixels, and the format query parameter picks one. The head prints 1500w. Asking the same URL with no format was redirected to 1000w in my request, so a link that someone builds by hand from the page's image can come out smaller than the tag says.

The same article says all images display as WebP, which loads faster than similar-quality JPEG and PNG, and that you can turn this off in the Image settings panel, after which images revert to their original format within 24 hours. I saw this: a file named .png in the tag, with a PNG content type on the 301, answered 200 as image/webp, and the bytes were WebP. Squarespace also says you cannot change an uploaded file, so to fix an image you reformat it locally and upload it again.

Three consequences:

  • The checker will report WebP, not the format you uploaded. Its image_format check scores WebP as the best format, so this one is not a problem.
  • A platform that cannot read WebP would fail on every Squarespace site with the default on. I did not find a platform documenting that, and I am not claiming one. If a specific app shows no image and everything else is right, turning the setting off is the test.
  • The image URL is not yours to change. The tag comes from the setting; you cannot point og:image at your own hosting without code injection, and then you have two tags (see Problem 6).

Fix

Nothing is broken here. Upload the right file once, check the URL the head prints rather than the one in your media library, and turn off the WebP setting only if a specific platform shows no image and nothing else explains it.

Detected by

The checker's image_reachable check follows the redirect, as its fetches follow every redirect, to the file, and its image_format check reports what came back. The audit's image_uncacheable finding should not fire: the CDN answered the file I fetched with a one year max-age.

Problem 5: I changed the image and the old one still shows

Symptom

The setting shows the new image. Facebook, LinkedIn, X or a messaging app still shows the old one.

Cause

Squarespace is not the cache. The platform holds its own copy of your page. The help center names the tools to refresh each one:

  • Facebook: the Sharing Debugger clears its cache.
  • X: the Card Validator makes it fetch the current page, and pasting the link into the composer previews it without posting.
  • LinkedIn: remove any site-wide password, or a password on the home page, for the duration. Inspect the URL in the Post Inspector and fix any warnings, then share the content again, because the inspector does not update content that was already pushed. Add the password back afterwards.
  • Messaging apps: updates take time, the timing is outside Squarespace's control, and you may have to ask the messaging provider to clear its cache.

A password on the site or the page is a cause of its own. LinkedIn's advice to remove the password while you inspect the URL points to the same thing: a crawler that cannot get past the lock cannot read your page.

Fix

Save the setting, load the page's source and check the image URL changed (the timestamp in the path is part of the file's address), then fetch the URL again in the platform's debugger. Upload a new file rather than editing the old, since Squarespace does not let you change an uploaded file.

Detected by

Not by a finding. The checker reads the page live, so if it shows the new image and a platform shows the old one, the platform's cache is the cause.

Problem 6: code injection, and what it cannot do

Symptom

You want a different og:image than the setting gives you, a large X card, or a card per page from your own hosting.

What the help center says about plans

Code injection is available on the Core, Plus and Advanced plans, and on some legacy billing plans, and checkout pages do not support custom code. The Code Injection article describes these places, which is what I read:

  • Header: code goes in the <head> of every page.
  • Footer: code goes before the closing </body> of every page.
  • Page Header Code Injection: in the Pages panel, hover over the page, click the gear icon, click Advanced. It adds code to that page's head.
  • Post Blog Item Code Injection: in the blog page's settings, for every post. In 7.1 it appears below the post's content, so it is not a place for meta tags. In 7.0 its position depends on the template.

In 7.1, Squarespace advises against putting HTML in Page Header injection, since it disappears if the header's transparency is turned off. In 7.0, index landing pages do not show injected code. Squarespace support does not help with custom code.

What it can and cannot fix

Injected tags are added to the head. They do not replace what Squarespace prints, and I found no way to remove Squarespace's own og:image. A second og:image gives the page two, and the checker reads the first one in the document. Facebook's documentation does not say which of several it uses, so a page with two cannot be relied on to look the same everywhere. For the card itself, set the setting, and use injection for what no setting covers, like the X card in Problem 3.

Where Squarespace puts the injected tags relative to its own I could not establish from the heads I read, so view the source.

Fix

Use settings for the image. Use the Header field for a tag the settings do not offer. After every injection, count: one og:image, and the twitter:card tags you expect.

Detected by

No finding counts duplicate tags. You see it in the source, with the command in the next section.

Verify your fix

Read the head as a crawler does. Request a page with a crawler's user agent and print the tags. Squarespace writes each as a <meta> element with property or name first, so this works:

curl -sA 'facebookexternalhit/1.1' https://your-site.com/blog/your-post \
  | grep -oE '<meta (property|name)="(og|twitter):[^"]*" content="[^"]*"'

Count the og:image lines and open the URL on the one you expect. Run it on the home page, a normal page, a blog post and a product, since each takes a different path through the fallback order.

Check one URL. The checker scores the card (reachability, dimensions, file size, tags) and renders how it looks on each platform. You can also check this guide's own card.

Audit the whole site. The site audit reads your sitemap, groups URLs into templates and samples across them. On Squarespace it is the quickest way to see that blog posts, products and pages each have a card of their own and that twitter_card_small is, as expected, everywhere.

Refresh each platform's copy. Use the Facebook Sharing Debugger (see the Facebook guide), LinkedIn's Post Inspector (the LinkedIn guide) and X's composer (the X card guide). None of them refreshes old shares.

A card worth sharing from Squarespace

Once the setting is right, the image is what people see. Squarespace puts your file on a link exactly as you made it, which makes the file the whole job: a 1200 by 630 PNG, with the page's own title on it, in your brand's colours.

The properOG generator builds that card from your site's colours and fonts and gives you a clean 1200 by 630 PNG. Upload it as the alternate social sharing image for the page, or as the social sharing logo for the site, then run the checks above.

Frequently Asked Questions

How do I change the Squarespace link preview image?

Set the social sharing logo in the Social Sharing panel for the whole site, and an Alternate Social Sharing Image in a page's or collection item's settings, on the Social tab, for individual ones. Squarespace uses the alternate image first, then the social sharing logo. Save, then fetch the URL again in the Facebook Sharing Debugger or LinkedIn's Post Inspector, because those platforms keep their own copy.

Why does my Squarespace blog post share the wrong image?

For a blog post, Squarespace uses the Alternate Social Sharing Image, then the post's featured image, then the social sharing logo. A post with no alternate image shares its featured image, which is a thumbnail picked for the blog layout. Set the alternate image on the post's Social tab. In version 7.1, pages have no featured image, so a page with no alternate image shares the social sharing logo.

What size should a Squarespace social sharing image be?

Squarespace's help center gives one size: at least 200 by 200 pixels for Facebook, and it names no ratio. A 1200 by 630 pixel image is the wide shape properOG's checker scores best. Squarespace serves a file narrower than 1500 pixels at its own width, as WebP, so upload the size you want shown.

Why does X show a small card for my Squarespace page?

The Squarespace pages I read all print twitter:card as summary, which is the small card, whatever the image size. On a Core, Plus or Advanced plan you can add a summary_large_image tag in the Header code injection field, which leaves two twitter:card tags in the head, so confirm the result on X.

Can I add my own og:image with Squarespace code injection?

You can add tags to the head with code injection on the Core, Plus and Advanced plans, but Squarespace still prints its own og:image, so you end up with two. The checker reads the first one in the document, and Facebook's documentation does not say which of several it uses. Use the social image settings for the image.

Audit your site

Sample pages across every template in your sitemap and see which ones ship the wrong card, or none. Free, no account needed.

Related guides