In short
Manipulative hidden text and links are content placed in a page's code for search engines but made invisible to visitors: white text on a white background, a zero font size, a block positioned off-screen, a link set on a single character. Google lists them among spam practices. This check consists in detecting them, removing them and telling apart what remains legitimate: tabs, accordions, text intended for screen readers. Expected result: everything a crawler reads on the page, a visitor can see or reveal.
Why it matters
Google's spam policies define hidden text or link abuse as placing content solely to manipulate search engines, without it being easily viewable by people. The examples given: white text on a white background, text hidden behind an image, CSS that positions text off-screen, a font size or opacity set to zero, a link applied to a single small character such as a hyphen.
The same page specifies what remains allowed: accordions and tabs, slideshows, tooltips, and text accessible only to screen readers to improve their experience. The line therefore depends on intent and access: content the visitor can reveal, or that serves accessibility, is legitimate; content nobody is meant to see is not.
Hidden text is not always deliberate. A hacked site often receives hidden links to pharmacy, gambling or counterfeit sites, sometimes served to crawlers only. A free theme can also ship invisible links to its developer. In every case, it is your site that is exposed to the “Hidden text and/or keyword stuffing” manual action and to the loss of visibility.
On the generative engine side, a crawler that extracts text from the HTML without applying the CSS reads hidden content like the rest: this text can therefore weigh on what it understands of the page, without you seeing it. Hidden instructions aimed at AI belong to a dedicated check: eliminate manipulative prompt injection (opens in a new tab).
What it improves
- Compliance Removes an explicit ground for a manual action.
- Security Looking for hidden links often uncovers a hack that went unnoticed.
- Trust No more invisible outbound links to dubious sites associated with your domain.
- Accessibility Proper hiding (a class reserved for screen readers,
<details>) replaces makeshift fixes that get in the way of assistive technologies. - Reading by AI What crawlers extract from the page matches what the visitor sees. Effect on citations not measurable.
- Rankings No direct gain, except when a manual action is lifted.
How to check
1. Search Console reports. The Manual actions report should show a green check mark. Also check the “Security issues” report: injected content is flagged there.
2. Select all. This is the tip Google gives: on the page, press Ctrl+A (Cmd+A on Mac). Text in the same color as the background shows up highlighted.
3. The console script. Open the browser's developer tools (F12), Console tab, and paste this script. It lists text elements made invisible by a zero font size, zero opacity, a color identical to the background, a negative indent or an off-screen position, then the external links found in hidden blocks:
(() => {
const background = (el) => {
for (let n = el; n && n !== document.documentElement; n = n.parentElement) {
const c = getComputedStyle(n).backgroundColor;
if (c && c !== "rgba(0, 0, 0, 0)" && c !== "transparent") return c;
}
return "rgb(255, 255, 255)";
};
const width = document.documentElement.scrollWidth;
const suspects = [];
document.querySelectorAll("body *").forEach((el) => {
const own = [...el.childNodes].filter((n) => n.nodeType === 3).map((n) => n.textContent.trim()).join(" ");
if (!own && el.tagName !== "A") return;
const s = getComputedStyle(el);
const r = el.getBoundingClientRect();
const reasons = [];
if (parseFloat(s.fontSize) < 2) reasons.push("near-zero font size");
if (parseFloat(s.opacity) === 0) reasons.push("opacity 0");
if (own && s.color === background(el)) reasons.push("background color");
if (parseFloat(s.textIndent) < -500) reasons.push("negative indent");
if (r.width > 0 && (r.right < -100 || r.left > width + 100)) reasons.push("off-screen");
if (el.tagName === "A" && el.textContent.trim().length === 1) reasons.push("link on 1 character");
if (reasons.length) suspects.push({ balise: el.tagName, texte: (own || el.textContent).trim().slice(0, 80), lien: el.href || "", raisons: reasons.join(", ") });
});
console.table(suspects);
const hiddenLinks = [...document.querySelectorAll("a[href^='http']")]
.filter((a) => a.hostname !== location.hostname && a.getClientRects().length === 0)
.map((a) => ({ lien: a.href, ancre: a.textContent.trim().slice(0, 60) }));
console.table(hiddenLinks);
})();
Sort through the result: a collapsed mobile menu or a social icon hidden on desktop is normal; a list of queries or a link to a casino is not. An old accessibility class that places text at left: -10000px will also show up: it is legitimate if the text serves screen readers.
4. The raw HTML, as a crawler sees it. Hacks sometimes serve hidden links to crawlers only. Compare:
curl -s https://example.com/ | grep -o -i -E 'style="[^"]*(display: ?none|visibility: ?hidden|font-size: ?0|left: ?-[0-9]{3,})[^"]*"[^>]*>.{0,200}' | head -20
curl -s -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" https://example.com/ | grep -o -i '<a [^>]*href="http[^"]*"' | sort -u | head -50
The second command lists the links served to an agent that presents itself as Googlebot: any unknown domain is suspect. To see what the real Googlebot receives, use the URL Inspection tool, “Test live URL”, then “View tested page”, HTML tab.
Compliant result: no manual action or security issue, no query text or invisible external link in either table.
How to implement
Before you start
| Case | Verdict | What to do |
|---|---|---|
| Tabs, accordion, “Read more” that the visitor can open | Allowed | Keep it; the content must be in the HTML |
| Text intended for screen readers (icon label, skip link) | Allowed | Use a standard accessibility class |
| Mobile menu hidden on desktop, and vice versa | Allowed | Check content parity between versions |
| Paragraph of keywords in white, in a tiny font or collapsed with no button | Prohibited | Remove it, or make it visible and useful |
Links to third-party sites in display: none in the footer |
Prohibited | Remove them and find the source (theme, hack) |
| Text behind an image or under an opaque layer | Prohibited | Remove it |
| Link set on a period or a hyphen | Prohibited | Remove it |
To visually hide text that is useful to screen readers, use this class, adopted by most frameworks:
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
For collapsible content, the native HTML element is enough and remains readable by crawlers:
<details>
<summary>How quickly can you come out?</summary>
<p>Within two hours in Nantes for a leak, within 48 hours for servicing.</p>
</details>
WordPress
Versions WordPress 6.4 and later, WP-CLI 2.x.
- Theme: look for hidden links and styles in the files of the active theme and its parents:
grep -rn -i -E "display: ?none|visibility: ?hidden|font-size: ?0|text-indent: ?-[0-9]{3,}" wp-content/themes/ | grep -i "href" | head -50
- Database: injections often hide in content, widgets or options. With WP-CLI:
wp db search "display:none" --all-tables
wp db search "font-size:0" --all-tables
- Modified files:
wp core verify-checksums, thenwp plugin verify-checksums --all, flag files that differ from the official versions. A scan with Wordfence or Sucuri completes the check. - Page builders: in Elementor, the
Advanced > Responsiveoption hides a block depending on the device. It is legitimate for layout, but a text block present on only one version creates a content gap: see check mobile/desktop content parity (opens in a new tab).
If injected links show up, deal with the hack first: see monitor for hacking and content or link injection (opens in a new tab).
Shopify
Versions Shopify admin, all plans, November 2026.
Open Online Store > Themes, the “…” menu of the published theme, “Edit code”. Search for display: none and visibility: hidden in the sections and snippets, especially those that contain links. Apps can also inject code: uninstall the ones you no longer use and check the app blocks in the theme editor (Customize).
Webflow
Versions Webflow Designer, November 2026.
Elements hidden with Display: None (Style panel, Layout section) remain listed in the Navigator. Review each breakpoint: a text block hidden at every screen size no longer has any reason to be published. Delete it rather than leaving it in the HTML.
Shared hosting
On shared hosting, an injection can sit outside the CMS: a .htaccess file, a .user.ini file with auto_prepend_file, unknown PHP files. Use the hosting provider's malware scanner (Imunify360 on many cPanel servers) and compare file modification dates with your latest updates.
Laravel
Versions Laravel 11 to 13.
Look in the Blade views and stylesheets for rules that hide text or links:
grep -rn -i -E "display: ?none|font-size: ?0|text-indent: ?-[0-9]{3,}" resources/views resources/css | head -50
To hide text intended for screen readers, use Tailwind CSS's sr-only class or the .visually-hidden class above, never keyword text.
Next.js
Versions Next.js 15 and 16 (App Router).
The same rules apply to React components. For collapsible content, prefer <details> or an accordion component that leaves the text in the server-rendered HTML: content missing from the HTML is not “hidden”, it is invisible to crawlers that do not execute JavaScript.
Common mistakes
- Confusing legitimate hiding with hidden text: removing an FAQ accordion for fear of a penalty loses useful, allowed content.
- Testing only in the browser: links injected by a hack are sometimes shown to crawlers only.
- Keeping an “SEO text” collapsed with no button so as not to spoil the design: this is exactly what Google describes.
- Turning a free theme's links white instead of removing them or owning them.
- Removing the symptom without looking for the vulnerability: the links come back on the hacker's next visit.
- Hiding text with
left: -9999pxfor accessibility with no accessibility reason: the technique is neutral, the intent is not.
Frequently asked questions
Is text intended for screen readers risky for SEO?
Text intended for screen readers is explicitly allowed by Google when it improves the experience of people using assistive technologies: the label of an icon button, a skip link, extra detail on a link. The risk only arises if the technique is used to place keywords that nobody would read. Use a standard class such as sr-only or visually-hidden, for short, useful text.
Resources
- Google Search Central: spam policies, hidden text and linksdevelopers.google.com
- Search Console Help: Manual actions reportsupport.google.com
- Search Console Help: URL Inspection toolsupport.google.com
- web.dev: help for hacked sitesweb.dev
- W3C: technique C7, using CSS to hide a portion of the link textw3.org
- MDN: the details elementdeveloper.mozilla.org
- WP-CLI: wp db search and wp core verify-checksumsdeveloper.wordpress.org
Updated on
Topic checklist (PDF)