Link in text block
Moderate effortFound on 11% of audited stores.
Make inline links visually distinguishable from surrounding body text by ensuring at least 3:1 color contrast between the link color and the non-link text color, or by adding a non-color visual cue (such as underline) to every link.
What it is
When a hyperlink appears inside a paragraph or block of text, sighted visitors must be able to tell it apart from the words around it. Browsers traditionally underline links to make this obvious, but many stores remove underlines for aesthetic reasons and rely solely on color to signal "this is a link." WCAG Success Criterion 1.4.1 ("Use of Color") requires that if color is the *only* visual difference between a link and its surrounding text, that color difference must meet a minimum contrast ratio of 3:1. If any non-color visual cue — such as an underline, bold weight, or border — is always present on the link, the 3:1 contrast rule does not apply, because color is no longer the sole distinguishing factor.
Why it matters
Approximately 8% of men and 0.5% of women have some form of color-vision deficiency, and many more users struggle to distinguish subtle color differences on low-quality screens, in bright sunlight, or with age-related vision changes. If those visitors cannot identify your links, they miss calls-to-action, product links, and navigation cues — directly reducing conversions and revenue. From a legal standpoint, WCAG 2.1 AA is the standard referenced in accessibility legislation in the US (ADA), EU (EAA), and many other jurisdictions; failing this criterion exposes your store to complaints, audits, and litigation. Search engines also use crawlable in-text links for internal-linking signals, so broken discoverability hurts SEO indirectly as well.
How to fix it
- Identify every place in your theme or stylesheet where link colors are defined (look for CSS selectors like `a`, `a:link`, `a:visited`, `.content a`, `.product-description a`, etc.).
- Use a color contrast checker (e.g., WebAIM Contrast Checker or the browser DevTools accessibility panel) to measure the contrast ratio between your current link color and the surrounding body text color.
- Choose one of two compliant approaches: (A) Change the link color so it has at least 3:1 contrast against the body text color AND still meets 4.5:1 contrast against the page background (WCAG 1.4.3), OR (B) Re-enable a non-color visual indicator — most commonly `text-decoration: underline` — so color is no longer the sole distinguishing cue, removing the 3:1 requirement entirely.
- Update the CSS for all relevant link states (`:link`, `:visited`, `:hover`, `:focus`, `:active`) to ensure the chosen approach is consistently applied.
- Verify the fix in a browser by inspecting the element, running an automated accessibility scanner (axe DevTools browser extension), and visually testing with a grayscale filter or color-blindness simulator.
- Test across your main content areas — product descriptions, blog posts, policy pages, and any rich-text blocks — because link styles can be overridden in different sections of the theme.
/* APPROACH A — Change link color to pass 3:1 contrast vs. body text
AND 4.5:1 vs. the page background */
a, a:link, a:visited {
color: #0057b8; /* verify this passes against your body text color */
}
/* APPROACH B — Add underline so color is no longer the sole cue
(removes the 3:1 body-text contrast requirement) */
a, a:link, a:visited {
text-decoration: underline;
}
/* Always ensure focus/hover states are also distinguishable */
a:hover, a:focus {
text-decoration: underline;
outline: 2px solid currentColor; /* helps keyboard users too */
}Fix it on your platform
Pick your platform for the exact steps.
How to fix link in text block on Shopify
- Go to Online Store → Themes → (your active theme) → Actions → Edit code.
- Open `assets/base.css` (or `assets/theme.css`, `assets/application.css` — the name varies by theme). Use the search box (Ctrl/Cmd+F) to find `a {` or `a:link`.
- To use approach A (color only): change the link color hex value to one that achieves ≥3:1 contrast against your body text. To use approach B (add underline): add or change `text-decoration: underline;` to the `a` selector.
- If your theme uses a visual editor with color pickers, go to Online Store → Themes → Customize → Theme settings → Typography or Colors and look for a 'Link color' option — update it there first, then verify in the CSS.
- Click Save and then preview your storefront, inspecting a product description or blog post to confirm the change is applied.
How to fix link in text block on WooCommerce
- In WordPress admin, go to Appearance → Customize → Additional CSS (for simple overrides) or Appearance → Theme File Editor → style.css for direct theme edits (child theme recommended).
- Add or modify a CSS rule targeting inline links, for example: `.entry-content a, .woocommerce-product-details__short-description a { color: #0056b3; text-decoration: underline; }` — replace the color value with one that passes contrast checks.
- Alternatively, install a plugin like 'Safe SVG' + 'Custom CSS & JS' or use the built-in Additional CSS panel to scope your fix without touching theme files.
- Check WooCommerce product description links specifically by inspecting `.woocommerce-tabs .panel a` and `.product_meta a` selectors.
- Save, then verify with the axe browser extension on a product page and a blog post.
How to fix link in text block on BigCommerce
- Go to Storefront → My Themes → (active theme) → Advanced → Edit Theme Files.
- Open `assets/scss/settings/foundation/base/_settings.scss` or the equivalent base variables file and locate `$anchor-color` and `$anchor-text-decoration`.
- Set `$anchor-color` to a value with ≥3:1 contrast against your body text, and/or set `$anchor-text-decoration: underline`.
- If your theme uses a Cornerstone-based Page Builder, also check Storefront → Style Editor for a 'Link Color' picker and update it there.
- Download a local copy as backup, save changes, and preview on a product description page or blog post before publishing.
How to fix link in text block on Wix
- Open the Wix Editor for your site.
- Click on a text block containing a link → click Edit Text → select the linked text → use the text toolbar's color picker to change the link's font color to one that has ≥3:1 contrast against surrounding text.
- Alternatively, enable underline formatting on the link text via the 'U' (underline) button in the text toolbar — this removes the need for the 3:1 color-contrast requirement.
- For site-wide link color in blog or dynamic pages: go to Site Design (paint-roller icon) → Text Themes → find the 'Link' text style and update its color and decoration there.
- Publish the site and test on the live URL with a browser accessibility extension.
How to fix link in text block on Squarespace
- Go to Website → Pages → (any page with a text block) → Edit → click a text block → select a hyperlinked word.
- In the text toolbar, change the link color using the text-color picker to a value with ≥3:1 contrast against surrounding text, OR enable the underline button so the link is visually distinct without relying on color alone.
- For global link styling: go to Design → Custom CSS and add: `a { color: #0056b3 !important; text-decoration: underline !important; }` — use a color that passes contrast checks against your body text color.
- In Squarespace 7.1 you can also go to Design → Fonts → Additional Styles to set global link decoration.
- Save and preview across Blog, Products, and static page text blocks to ensure the rule applies everywhere.
How to fix link in text block on Webflow
- Open your project in the Webflow Designer.
- In the left panel, go to Navigator or click directly on a link element inside a Rich Text block or paragraph.
- On the right-side Styles panel, select the `All Links` or `a` tag-level selector (choose 'Tag' from the selector type dropdown).
- Update the Color property to a value with ≥3:1 contrast against body text color, and/or set Text Decoration to 'Underline'.
- For Rich Text link styles specifically, select a Rich Text element → go to its styles → click the '…' inside the Rich Text settings to style nested elements including links.
- Publish and verify on a staging/live page using the axe DevTools extension.
How to fix link in text block on Adobe Commerce (Magento)
- Create or edit a child theme to avoid losing changes on upgrade: `app/design/frontend/<Vendor>/<theme>/web/css/source/_theme.less` (or `_extend.less`).
- Locate or add the link color variable — in Luma-based themes look for `@link__color` in `web/css/source/_variables.less` — and set it to a hex value passing ≥3:1 contrast against body text.
- To enforce underlines globally, add: `a { text-decoration: underline; }` in your `_extend.less` or equivalent SCSS partial.
- Run `bin/magento setup:static-content:deploy` and clear cache (`bin/magento cache:flush`) to compile the updated CSS.
- Verify on a CMS page, product description, and blog post (if using a blog extension) using browser DevTools accessibility panel.
Does your site have this issue?
Run a free SEOLZ audit to find link in text block — and every other issue — across your whole site in minutes.
Scan my site freeFrequently asked questions
What is Link in text block?
When a hyperlink appears inside a paragraph or block of text, sighted visitors must be able to tell it apart from the words around it. Browsers traditionally underline links to make this obvious, but many stores remove underlines for aesthetic reasons and rely solely on color to signal "this is a link." WCAG Success Criterion 1.4.1 ("Use of Color") requires that if color is the *only* visual difference between a link and its surrounding text, that color difference must meet a minimum contrast ratio of 3:1. If any non-color visual cue — such as an underline, bold weight, or border — is always present on the link, the 3:1 contrast rule does not apply, because color is no longer the sole distinguishing factor.
Why does link in text block matter?
Approximately 8% of men and 0.5% of women have some form of color-vision deficiency, and many more users struggle to distinguish subtle color differences on low-quality screens, in bright sunlight, or with age-related vision changes. If those visitors cannot identify your links, they miss calls-to-action, product links, and navigation cues — directly reducing conversions and revenue. From a legal standpoint, WCAG 2.1 AA is the standard referenced in accessibility legislation in the US (ADA), EU (EAA), and many other jurisdictions; failing this criterion exposes your store to complaints, audits, and litigation. Search engines also use crawlable in-text links for internal-linking signals, so broken discoverability hurts SEO indirectly as well.
How do I fix link in text block?
Make inline links visually distinguishable from surrounding body text by ensuring at least 3:1 color contrast between the link color and the non-link text color, or by adding a non-color visual cue (such as underline) to every link.
Authoritative references
- How to fix this specific rule — Deque/axe (rule reference)
- WCAG 2 overview — W3C WAI
- Color contrast & accessibility — MDN