How to fix svg img alt on Squarespace
Add a meaningful text alternative to every SVG image so screen readers can describe it to visually impaired shoppers.
Steps for Squarespace
- Squarespace renders most icons and logos as inline SVGs that you cannot directly edit in the visual editor. For your site logo: go to Pages > Website Tools (or Design) > Logo & Title and re-upload your logo as a PNG or SVG; Squarespace wraps it in an `<img>` tag where you can set alt text under Design > Logo.
- For SVGs embedded via a Code Block: Pages > (your page) > Edit > add or open a Code Block > edit the raw SVG HTML directly to include `role="img"` and `aria-label="Description"` on the `<svg>` tag, or nest `<title id="t1">Description</title>` inside it and reference it with `aria-labelledby="t1"`.
- For theme-generated SVG icons (social icons, navigation arrows), inject a CSS/JS fix via Settings > Advanced > Code Injection > Header: add a small JavaScript snippet that selects the SVGs by class and sets `setAttribute('aria-label', 'Description')` and `setAttribute('role', 'img')` for each.
- For decorative SVGs, use Code Injection to add a script that sets `setAttribute('aria-hidden', 'true')` on the relevant SVG elements.
- Test with Chrome's Accessibility panel after publishing.
What is svg img alt?
SVG files are vector images often used for logos, icons, badges, and illustrations on ecommerce sites. Unlike a regular `<img>` tag which has an `alt` attribute, an inline SVG element needs its own internal mechanism to carry a text description — either a `<title>` element nested inside it, an `aria-label` attribute on the `<svg>` tag itself, or a reference to external text via `aria-labelledby`. Without one of these, a screen reader either skips the image entirely or reads out meaningless code, leaving blind and low-vision shoppers without context for what the image conveys. WCAG Success Criterion 1.1.1 ("Non-text Content") requires that all meaningful images have a text alternative.
Screen readers are used by millions of shoppers with visual impairments, and an SVG without a text alternative is completely invisible to them — a missing logo, an unreadable trust badge, or a broken call-to-action icon. This directly harms conversions and user experience for a significant customer segment. From a legal standpoint, failing WCAG 1.1.1 is one of the most commonly cited violations in ADA and AODA accessibility lawsuits and demand letters targeting online stores; remediating it proactively protects you from costly litigation. Google's crawlers also partially interpret accessibility markup, so well-labelled SVG images can contribute to better understanding of your page content.
See the complete Svg img alt guide for every platform and the full background.
Not sure if your Squarespace store has this?
Run a free SEOLZ scan — we’ll find svg img alt and every other issue across your whole site.
Scan my site free