General WordPress

Manage Widget Visibility

2 min read Updated Sep 2026 General WordPress

To show a widget on some pages only, use a widget visibility plugin. WordPress core has no page-by-page rules. Core can hide a block on desktop, tablet or mobile screens.

The menus you see depend on your theme. A classic theme shows Customize in Appearance, plus Menus and Widgets when it supports them. A block theme shows Editor in place of Customize, unless the theme or a plugin adds Customizer settings. It shows Menus or Widgets only when it supports them. Polestar, Ultra and the Puro theme are classic themes.
By default, Polestar, Ultra and the Puro theme use the classic Widgets screen, where you drag widgets into widget areas. Other themes can use the block-based Widgets screen. Both are covered below.

Classic Admin Screens

Widget Options adds visibility rules to classic widgets and to blocks. For example, you can show a Text and Maps widget on the contact page only.

  1. Go to PluginsAdd Plugin, then install and activate Widget Options.
  2. Go to AppearanceWidgets and open a widget or block.
  3. Set the visibility rules the plugin adds to it.
  4. Click Save on the classic screen, or Update on the block-based screen.

Widget visibility rules on the Widgets screen

The plugin also adds the same rules to widgets used in Page Builder by SiteOrigin.

The Jetpack plugin has a Widget Visibility module. Turn the module on. Each widget then gets a Visibility button with Show and Hide rules. Jetpack has many modules. To start with none active, see disabling all modules in one go.

Customizer

The plugins above add their rules to widgets in the Customizer as well. The screen-size rule of the block-based screen works there too.

  1. Go to AppearanceCustomizeWidgets and open a widget area.
  2. Select the widget. On the block-based screen, select the block and open the block options menu (three dots).
  3. Click Hide. Check Hide on Desktop, Hide on Tablet or Hide on Mobile, then click Apply.
  4. Click Publish.

Widget visibility rules in the Customizer Widgets panel

The Hide rule depends on screen size only. It is a block option, so it does not apply to widgets on the classic screen. Use a plugin for rules by page.

Block Themes

A block theme normally has no widget areas. Blocks in templates and template parts take their place. Hide a block on some screens with the same Hide option.

  1. Go to AppearanceEditorTemplates and open a template.
  2. Select the block and open the block options menu (three dots).
  3. Click Hide. Check Hide on Desktop, Hide on Tablet or Hide on Mobile, then click Apply.
  4. Click Save.

The Hide block dialog in the Site Editor with Hide on Mobile checked

To show a block on one page only, edit that page and add the block to it. Widget Options also adds page rules to blocks.