How to fix aria command name on Squarespace
Give every button, link, and menuitem a clear, accessible name so screen readers can announce what it does.
Steps for Squarespace
- Log in to your Squarespace account and go to Website → Pages or Design → Custom CSS.
- For icon-only buttons built with Squarespace blocks (e.g., social icons, navigation buttons), Squarespace auto-generates some labels but may miss custom icon blocks.
- Go to Pages → select the page → click Edit → click the flagged block/element → open its block settings and fill in the 'Description', 'Alt text', or 'Button label' field if available.
- For site-wide elements like the cart icon or mobile nav toggle that are part of the theme and not directly editable in the block editor, go to Design → Custom CSS and inject a CSS-based visually-hidden label workaround, OR use Settings → Advanced → Code Injection to add a small JavaScript snippet that sets `aria-label` on those elements after the page loads (see code snippet below).
- Re-publish and test with axe to confirm the label appears.
What is aria command name?
The `aria-command-name` rule flags interactive elements — specifically buttons (`role="button"`), links (`role="link"`), and menuitems (`role="menuitem"`) — that have no accessible name. An "accessible name" is the text a screen reader reads aloud when a user lands on that element. It can come from visible text inside the element, an `aria-label` attribute, an `aria-labelledby` attribute pointing to another element's text, or (for images used as buttons) a meaningful `alt` attribute. When none of those exist, the screen reader either reads nothing at all or reads something meaningless like the raw URL or a string of punctuation, leaving visually impaired shoppers completely in the dark about what the control does.
WCAG 2.1 Success Criterion 4.1.2 (Name, Role, Value) is a Level AA requirement, meaning it is referenced in most accessibility laws worldwide — including the ADA (US), EN 301 549 (EU), AODA (Canada), and EAA (UK/Europe). Failing it exposes your store to legal complaints and demand letters that are increasingly common against ecommerce sites. Beyond legal risk, blind and low-vision shoppers using screen readers simply cannot use controls without accessible names — they cannot add items to a cart, navigate menus, or complete a purchase — directly costing you revenue and customers. Additionally, Google uses accessibility signals as one of many quality indicators, so a more accessible site can support better crawlability and user experience scores.
See the complete Aria command name guide for every platform and the full background.
Not sure if your Squarespace store has this?
Run a free SEOLZ scan — we’ll find aria command name and every other issue across your whole site.
Scan my site free