HomeFix guides → <meta name=description> present

tech

How to fix: <meta name=description> present

Why this matters

Search engines frequently pull the meta description as the summary they show users in result snippets. Without one, the engine picks the first 160 chars of body text — often menu links or boilerplate.

Background

Without a <meta name="description">, search engines and social-card generators synthesise a snippet from the page's first visible text — usually a navigation menu, cookie banner, or generic intro. A handwritten 150-160 char description improves CTR on the SERP and on shared links.

References

Google Search Central · Open Graph · technical SEO baseline

How to fix

Code snippet for each stack we cover. Pick the one matching your server / framework.

nginx
Not an nginx concern.
apache
Same.
cloudflare
Same.
wordpress
Yoast / RankMath / AIOSEO provide per-page meta description fields.
flask
<meta name="description" content="{{ page_description }}"> — and supply it per template, not a site-wide default.
express
Same — supply per-route in your template engine.
rails
<%= tag.meta name: 'description', content: page_description %>

Verify it's working

View source. <meta name="description" content="..."> should be present and unique per page.

Want to know if your site has this issue?

Run a free 53-check audit — security, GDPR, NIS2, and technical SEO.

Audit my site →