Skip to content
Development

How to hide the tagline in WordPress themes

Hide the site tagline in Twenty Twenty, Twenty Twenty-One and block themes with the Customizer, the Site Editor, an empty tagline or CSS.

By WP24×7 engineers4 min readPublished June 26, 2021Updated November 29, 2026

At a glance

The tagline set under Settings, General is the short line under your site title. To hide it, use the theme's own setting if it has one, remove the Site Tagline block in a block theme, or clear the field. Use CSS only if you want to keep the text for other places. This guide covers Twenty Twenty, Twenty Twenty-One, block themes and other themes, with CSS that survives updates.

Updated November 29, 2026 · For WordPress site owners and theme developers

  • For owners and developers who want the tagline hidden
  • Twenty Twenty-One a Customizer toggle under Site Identity
  • Twenty Twenty empty the tagline, or hide .site-description with CSS
  • Block themes remove the Site Tagline block in the Site Editor
  • Keep changes safe use Additional CSS or a child theme, not the parent's style.css
  • Page title hiding in the header does not change the title tag

The tagline, set under Settings, General, is the short line under your site title. Some designs show it by default. The cleanest ways to hide it are, in order: use the theme's own setting if it has one, remove the Tagline block in a block theme, or clear the field. Use CSS only if you want to keep the text for other places.

Which theme am I on?

Check Appearance, Themes. Twenty Twenty and Twenty Twenty-One are classic themes, edited in the Customizer. Twenty Twenty-Two and newer default themes are block themes, edited in the Site Editor. If Appearance shows Editor instead of Customize, you have a block theme.

How do I hide it?

This theme has a switch:

  1. Go to Appearance, Customize, Site Identity.
  2. Untick Display Site Title or the tagline option, depending on version. In Twenty Twenty-One a single option controls whether the title and tagline show in the header.
  3. Click Publish.

What if my theme is neither?

Many commercial themes and page builders put a switch in their own options. Look in Appearance, Customize, Header, or the theme's options panel, for "tagline", "site description" or "show tagline". Builders such as Elementor and Divi show the tagline through a widget or module you can delete. When you use CSS, put it in a child theme's stylesheet or the Additional CSS box, which survive updates; editing the parent theme's style.css loses your changes. See setting up a child theme.

Should I use display none or hide it visually?

display: none removes the element for everyone, including screen readers, which is fine for decoration. If the tagline gives useful context to people using assistive technology, hide it visually but keep it available:

.site-description {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

This is the technique behind WordPress's own .screen-reader-text class, so in many themes you can add that class instead. Whether to keep it is a design choice, not an SEO trick, and search engines may treat hidden text with suspicion if it is stuffed with keywords, so keep any hidden tagline short and honest.

Does hiding the tagline change my page title?

It may not. The tagline is also used in the browser title on the home page in many themes, as "Site name – Tagline", and SEO plugins have their own title templates. Hiding it in the header with CSS leaves the <title> as it was. Clearing the field removes it from both. To change titles on purpose, see your SEO plugin's templates, as in using the pipe separator in Yoast SEO.

The tagline sits under the site title in the header

What common problems come up?

ProblemCause and fix
The CSS has no effectA cache is serving the old stylesheet, or the selector is wrong; clear plugin and CDN caches, or inspect the element
The tagline shows only on mobileThe header uses a separate mobile template or class; inspect at phone width
The change vanished after an updateIt was made in the theme's files; move it to Additional CSS or a child theme
Space remains where the tagline wasMargins on the header wrapper still apply; adjust the container's padding

How do I check it worked on every device?

Test the home page, an inner page and the mobile view in responsive mode or on a real phone, since some themes show the tagline in the mobile menu in a separate element. Check with the page cache cleared, in a private window. If the tagline appears in the footer or a menu, those are separate elements needing their own change.

Which method for which theme?

Theme typeBest method
Twenty Twenty-OneCustomizer, Site Identity
Twenty TwentyEmpty the tagline, or hide .site-description with Additional CSS
Block themeRemove the Site Tagline block in the Site Editor
Commercial theme or page builderThe theme's own option, or delete the tagline widget or module
Want a header that is not a patch on a stock theme?

A custom layout, sticky bar or mobile menu, built properly.

FAQ

Questions people ask

12 answers. Can't find yours? Ask an engineer.

Is hiding the tagline with CSS bad for SEO?

Not in itself, but the tagline also feeds your home page title in many setups. If you never want it shown anywhere, emptying the field is cleaner than hiding it.

Link to this answer
Where do I add CSS so a theme update does not remove it?

Use Appearance, Customize, Additional CSS, the Site Editor's Additional CSS, or a child theme stylesheet. Do not edit the theme's own style.css.

Link to this answer
Why does the tagline still show in browser tabs or search results?

The title tag can include the tagline separately from the visible header. Check your SEO plugin's title template.

Link to this answer
How do I know if I have a block theme?

Check Appearance. If it shows Editor instead of Customize, you have a block theme. Twenty Twenty and Twenty Twenty-One are classic themes, and Twenty Twenty-Two and newer defaults are block themes.

Link to this answer
The CSS rule has no effect. Why?

A cache may be serving the old stylesheet, or the selector is wrong. Inspect the element in your browser and use the class name you find, since other themes use names such as .tagline or .site-tagline.

Link to this answer
What is the difference between display none and visually hiding?

display none removes the element for everyone, including screen readers. A visually hidden technique keeps it available to assistive technology. It is a design choice, not an SEO trick.

Link to this answer
Can hidden text hurt my search visibility?

Search engines may treat hidden text with suspicion if it is stuffed with keywords, so keep any hidden tagline short and honest.

Link to this answer
The tagline shows only on mobile. What now?

The header may use a separate mobile template or class. Inspect the page at phone width and target that element.

Link to this answer
My change vanished after a theme update. Why?

It was made in the theme's own files. Move it to Additional CSS or a child theme so it survives updates.

Link to this answer
There is empty space where the tagline was. How do I remove it?

Margins on the header wrapper are still applied. Adjust the padding or margin on the container.

Link to this answer
My theme is a commercial theme or uses a page builder. What do I do?

Look for a tagline or site description switch in Appearance, Customize, Header or the theme's options panel. Builders such as Elementor and Divi show the tagline through a widget or module you can delete.

Link to this answer
Can you build a custom header?

Yes. Our theme developers can build a custom layout, sticky bar or mobile menu, and our customization team can handle smaller visual fixes.

Link to this answer

Keep reading

Want an engineer on it?

Tell us what is wrong in plain words. A person reads it, today.