Guides

What Are WordPress Widgets? How to Add, Restore and Create Widget Areas

WordPress widgets explained: where widgets live in classic and block themes, tested on WordPress 7.1.5

This guide explains what WordPress widgets are and how to manage them on today's sites.

Quick answer: WordPress widgets are small blocks of content, such as a search box, recent posts or a short About note, that you place in the areas your theme sets aside for them, usually a sidebar or footer.

  • Classic themes (Twenty Twenty-One, Astra, GeneratePress and similar) still have widget areas. You manage them under Appearance → Widgets, which has used blocks since WordPress 5.8.
  • Block themes (Twenty Twenty-Five and other Full Site Editing themes) have no widget areas. You edit the sidebar or footer in the Site Editor instead.
  • Prefer the old screen? The free Classic Widgets plugin from the WordPress team brings it back on classic themes.

We checked every step below on a WordPress 7.1.5 test site in WordPress Playground on November 20, 2026.

What WordPress Widgets Do

A widget adds content or a feature to a fixed spot that repeats across your site, so a search box placed in the footer once appears on every page that uses that footer, without any code.

The spot itself is called a widget area (developers often call it a sidebar, even when it sits in the footer). Your theme decides how many widget areas exist and where they appear. Twenty Twenty-One, for example, has just one, named Footer.

WordPress ships with 18 widget types. We listed them on our test site through the REST API: Archives, Audio, Block, Calendar, Categories, Custom HTML, Gallery, Image, Meta, Navigation Menu, Pages, Recent Comments, Recent Posts, RSS, Search, Tag Cloud, Text and Video. Plugins can add more. An ads plugin, for example, may add a widget for an ad slot (see our list of ad plugins for WordPress).

On a fresh install, WordPress fills the first widget area for you. Our test footer started with five items: Search, Recent Posts, Recent Comments, Archives and Categories.

Before You Start

  • Know your theme type. Go to Appearance. If you see a Widgets link, your theme is classic and supports widgets. If you only see Themes, Editor and Fonts, it's a block theme.
  • Update first. Run the latest WordPress version so your screens match this guide. Our guide on updating WordPress safely covers it.
  • Use an Administrator account. Only roles with the edit_theme_options capability can open the widget screens.
  • Take a backup if you plan to add code to a theme.

How to Add Widgets in a Classic Theme

Since WordPress 5.8, the Widgets screen works like the post editor. Each widget area is a box, and you fill it with blocks.

  1. Open Appearance → Widgets. Close the welcome guide if it pops up.
  2. Click the widget area you want to edit, such as Footer or Sidebar, to expand it.
  3. Click the blue + button at the top left, then search for a block like Search, Latest Posts or Paragraph.
  4. Adjust the block in the right-hand panel under the Block tab.
  5. Move items by dragging them, or use the block toolbar to send a block to another widget area.
  6. Click Update at the top right. Nothing goes live until you do.
  7. Check the front end in a private window to see the result as visitors do.

WordPress block-based Widgets screen showing the Footer widget area with Search, Recent Posts, Recent Comments and Archives
The block-based Widgets screen with Twenty Twenty-One's default footer widgets, on our WordPress 7.1.5 test site

If you'd rather see changes as you make them, use Appearance → Customize → Widgets. The same blocks are there, with a live preview. Because the panel is narrow, some block settings are hidden; open the three-dot menu and choose Show more settings to find them.

Older widgets that aren't blocks still work, because WordPress wraps them in a Legacy Widget block, so you can edit their settings in the same place.

How to Bring Back the Classic Widgets Screen

Some site owners find the block screen harder to use, especially on older sites built with page builders. The official fix is the free Classic Widgets plugin, maintained by WordPress contributors.

  1. Go to Plugins → Add New Plugin and search for "Classic Widgets".
  2. Install and activate it. There are no settings to configure afterwards.
  3. Reopen Appearance → Widgets. You'll see the old two-column, drag-and-drop screen.

When we checked the WordPress.org plugin API on November 20, 2026, Classic Widgets was at version 0.3, last updated December 8, 2025, with over 2 million active installs. Its listing says "tested up to 6.9.12", but it ran without errors on our WordPress 7.1.5 test site. It does nothing on block themes. For more ways to switch, see our guide on disabling widget blocks.

Classic WordPress Widgets screen restored by the Classic Widgets plugin, with Available Widgets on the left and the Footer area on the right
The classic Widgets screen after activating the Classic Widgets plugin, on our WordPress 7.1.5 test site

What to Do If Your Theme Has No Widgets Screen

Block themes such as Twenty Twenty-Five, the default theme on our test site, remove the Widgets menu on purpose. When we opened /wp-admin/widgets.php directly, WordPress said the theme "is not widget-aware" and has no sidebars you can change.

WordPress message saying the current theme is not widget-aware and has no sidebars to change
The message WordPress 7.1.5 shows at /wp-admin/widgets.php when Twenty Twenty-Five, a block theme, is active

Here's how to get the same result in a block theme:

  1. Open Appearance → Editor.
  2. Choose Patterns → Template Parts and open the Footer or Header part.
  3. Add blocks such as Search, Latest Posts or Categories, exactly as you would in a widget area.
  4. Click Save. The change applies to every template that uses that part.

Need help with footers? Our guide to editing the footer in WordPress covers both theme types.

How to Create a New Widget Area (Worked Example)

If your classic theme lacks a widget area where you need one, you can register your own. We tested this code on Twenty Twenty-One. It adds an "After Post" area and prints its widgets at the end of each single blog post.

<?php
add_action( 'widgets_init', function () {
	register_sidebar( array(
		'name'          => 'After Post',
		'id'            => 'wpt-after-post',
		'description'   => 'Shown below single posts.',
		'before_widget' => '<section id="%1$s" class="widget %2$s">',
		'after_widget'  => '</section>',
	) );
} );
add_filter( 'the_content', function ( $content ) {
	if ( is_singular( 'post' ) && in_the_loop() && is_active_sidebar( 'wpt-after-post' ) ) {
		ob_start();
		dynamic_sidebar( 'wpt-after-post' );
		$content .= ob_get_clean();
	}
	return $content;
} );

Save it as a small plugin file in wp-content/mu-plugins/, or add it to a child theme's functions.php. Don't edit the parent theme, because an update would wipe your change.

What happened on our test site:

  • The new area appeared at once above Footer on the Widgets screen. The REST API listed it as wpt-after-post.
  • We added one Paragraph block to it, and the text showed under the "Hello world!" post, inside a <section class="widget widget_block"> wrapper.
  • Pages and the home page stayed clean, because is_singular( 'post' ) limits it to single posts.

WordPress Widgets screen showing a custom After Post widget area above the Footer area
Our custom "After Post" widget area on the Widgets screen, registered with register_sidebar() on WordPress 7.1.5

A WordPress post with the After Post widget text shown below the post content
The After Post widget showing under the sample post on our Twenty Twenty-One test site

Theme developers usually call dynamic_sidebar() straight from a template file instead. The filter approach above works without editing templates, which suits most site owners.

Common Mistakes

  • Forgetting to click Update. The block Widgets screen doesn't save on its own, so changes vanish if you leave the page.
  • Expecting site blocks to work. Theme blocks such as Site Logo and Site Title, plus synced patterns, are turned off in the widget editor, per the official docs.
  • Getting confused by the classic screen. After we activated Classic Widgets, our five default footer items all showed up with the same label: "Block". You have to expand each one to see what it is.
  • Looking for widgets in a block theme. They aren't there. Use template parts in the Site Editor.
  • Rebuilding widgets after a theme switch. If items vanish when you change themes, open the Inactive widgets area on the Widgets screen first. Widgets parked there keep their settings, so you can move them into a new area.
  • Using an uppercase ID. The developer docs say a widget area id must be lowercase.

FAQs

Are WordPress widgets the same as blocks?

Not quite. Since WordPress 5.8, a widget area can hold blocks, and each block is saved as a "Block" widget. Older widgets still exist and run inside the Legacy Widget block.

Why is there no Widgets option in my Appearance menu?

You're using a block theme, or a classic theme that registers no widget areas. Edit template parts in Appearance → Editor instead.

Can I use shortcodes in widgets?

Yes. Add a Shortcode block to a widget area. Our guide on using shortcodes in sidebar widgets has the details.

How do I remove a widget area from a page?

Remove all its widgets, or pick a full-width template if your theme has one. See how to remove the sidebar in WordPress.

Can I add a tag cloud without a widget?

Yes, with a template function or a Tag Cloud block. Here's how to display a tag cloud manually.

What to Do Next

  • Check your theme type under Appearance, then use the matching section above.
  • Clean up your footer or sidebar by keeping only the widgets readers actually use, such as Search and Recent Posts.
  • Test changes on a copy first. A free WordPress Playground site takes seconds to start. New to the platform? Start with what WordPress is.

Whichever theme you run, the principle stays the same: reusable content belongs in a shared area, whether that's a classic widget area or a block template part. Keep those areas short, useful and consistent, and your WordPress widgets will help visitors instead of distracting them.

Sources

#Widgets