Using WordPress widgets with classic and block themes Print

  • wordpress, weboldal készítés
  • 0

Widgets are elements that appear alongside the content of posts and pages: a search box in the sidebar, a list of recent posts, a calendar or contact details in the footer. As they are not specific to individual pages, they usually appear on every page of the website.

How you manage them depends on which theme you use, so in today’s WordPress there are two different approaches. We tested the steps in October 2026 using WordPress 7.1 with a Hungarian-language interface, with the Twenty Twenty-One (classic) and Twenty Twenty-Five (block) themes, on an aWh cPanel test account. It works in exactly the same way on WordPress hosting plans, as this is WordPress’s own interface.

What theme does it use?

Take a look at the ‘Appearance’ menu in the admin interface:

  • Classic theme: the menu includes the Customize, Widgets and Menus options.
  • Block theme: ‘Editor’ appears in the menu, but the ‘Widgets’ option is missing.

If you open the widgets page directly from a block theme, you will see this message: The theme you are currently using is not widget-aware, meaning that it has no sidebars that you are able to change. This is not an error: in a block theme, the entire page consists of blocks, so there is no need for a separate widget area.

Adding a widget to a classic theme

The theme determines which widget areas there are (for example a sidebar or footer). The Twenty Twenty-One theme, for example, only has a Footer area and no sidebar.

  1. Go to the Appearance › Widgets page.
  2. Click on the blue ‘+’ button in the top-left corner (Block Inserter).
  3. In the Search field, find the item – for example, the Calendar block – and click on it. The block will be placed in the selected area.
  4. Arrange the elements within the area by dragging them or using the arrows on the block toolbar.
  5. Click on the ‘Update’ button in the top right-hand corner. The message ‘Widgets saved.’ will then appear, and the item will now be visible on the website.

WordPress Widgets page: the Calendar block in the Footer area, with the Widgets saved message

To remove an element, select the block and remove it from the three-dot menu on the toolbar, then click the Update button. Elements left orphaned after a theme change are collected in the ‘Inactive widgets’ section; from there, you can restore or delete them.

With live preview

If you would like to see the result as you go along, go to Appearance › Customize › Widgets. Here you can manage the same sections alongside a preview of the website; changes will take effect after publication.

The old widget interface

Instead of the block-based interface, you can revert to the old interface using the Classic Widgets add-on. Once enabled, on the Widgets page, you can drag elements from the ‘Available Widgets’ list on the left into the areas. This is useful if an older plugin or theme does not work well with the block-based interface.

The same applies to block themes

With block themes, you can customise the sidebar, footer and header in the Editor:

  1. Go to the Appearance › Editor page.
  2. Open the template or template part (e.g. the footer) where you want to place the element.
  3. Click on the + button and select the block. The equivalents of traditional widgets can be found in the Widgets category.
  4. Save the changes.

If you edit a theme section, the change will appear on every page that uses it.

What is each element used for?

  • Search: the search function will be available on every page.
  • Recent Posts, Recent Comments, Archives: the basis for blog navigation.
  • Custom HTML: embedded code, such as a form from an external service. Only embed code from trusted sources.
  • Plugin widgets: installed plugins (such as a newsletter sign-up form or the WooCommerce basket) can add their own items to the list.

What should you look out for?

  • Don’t clutter up the sidebar. Every element may involve a query or an external load, and as it runs on every page of the website, any slowdown will be noticeable everywhere. Elements that load external services are the slowest. Our article on speeding up WordPress discusses this in more detail.
  • Have a look on your mobile too. Many mobile themes place the sidebar below the content, so important elements only appear at the bottom of the page.
  • Cache: if the changes are not visible on the website, clear the cache of your caching plugin and your browser.
  • Before changing your theme, check that the new theme offers the same sections. After switching to a block-based theme, you will need to rebuild your old widgets in the Editor.
  • After changing your domain, the old address may remain in the widget settings; this is covered in the article on changing URLs.

Our article on the WP Toolkit plugin manager covers how to manage plugins and themes.


Was this answer helpful?

« Back