WordPress widgets are now blocks in most modern WordPress sites, so showing or hiding them works the same way as showing or hiding any other block. In block themes, widget areas such as sidebars and footers are built from blocks, and the block editor controls what appears in them. Recent WordPress versions also include built-in block visibility controls, so you often need no plugin at all for simple show and hide jobs. This guide covers the built-in controls first, then explains when a plugin is genuinely worth adding.
Contents
- WordPress Widgets in the Block Editor
- Hide a Block Without Deleting It
- Show One Version on Desktop and Another on Mobile
- When to Use a Plugin Instead
- Visibility Mistakes to Avoid
- Related Reads
WordPress Widgets in the Block Editor
WordPress widgets used to be managed in a separate widgets screen, but the block editor has changed that picture. In a block theme, you edit widget areas through the Site Editor, where you add, move, and remove blocks just as you would on a page. In a classic theme, widget areas still exist, and the block-based widgets screen lets you build them from blocks too. Either way, the key idea is the same: a widget is a block, and block controls apply to it.
Start by identifying which area you are editing, such as a sidebar, a footer, or a header area. Add the block you need, for example a search block, a recent posts block, or a simple text block. Preview the result on the live site after saving, since the editor view and the published view can differ slightly. If a widget does not appear, check that it sits in the right widget area and that no visibility rule is hiding it, which is the next topic.
Hide a Block Without Deleting It
Hiding a block is useful when content is seasonal, under revision, or needed again later. Select the block in the editor, open its options menu, and look for the Hide or visibility controls. Recent WordPress versions let you hide a block entirely, so it is omitted from the published page, or hide it only on chosen device types. Choose the scope carefully, save the page, and check the result in a private browser window, where you see the page as a visitor does.
Hidden blocks are easy to lose track of, so use the editor’s List View to review them. List View shows the structure of the page and marks blocks that carry visibility settings, which helps you find a block you hid weeks ago. To bring a block back, select it in List View and clear its visibility setting, then save again. Hiding is reversible, which is exactly why it beats deleting content you may want again.
Show One Version on Desktop and Another on Mobile
A common job is showing a full section on desktop and a shorter version on phones. Build both versions as separate groups of blocks on the same page, then hide each version on the devices where it does not belong. The desktop version is hidden on mobile, and the mobile version is hidden on desktop and tablet. Visitors then see only the version suited to their screen, while you maintain a single page.
Keep the two versions honest and equivalent in meaning. The mobile version should carry the same essential message and the same call to action, just in shorter form. Do not use this trick to show visitors different prices, claims, or offers by device, since that erodes trust quickly. Test both versions on a real phone and a real computer, not only in editor previews, because previews can miss layout problems that real devices reveal.
When to Use a Plugin Instead
Built-in visibility covers hiding a block entirely or by device, but some jobs need conditions the core does not offer. Visibility plugins generally add rules based on login status, user role, date and time, or other conditions, all controlled from the block sidebar. A plugin makes sense when you regularly show member-only notices, time-limited announcements, or content for logged-in visitors only. For a one-off hide, the built-in controls are simpler and add no extra maintenance.
If you do add a plugin, choose one from the official WordPress plugin directory with recent updates and good recent reviews. Install it on a test or staging site first, and check that its controls appear for the blocks you use. Keep the number of visibility plugins to one, since two plugins controlling the same blocks can conflict in confusing ways. For safe plugin installation steps, see How to Install a Plugin in WordPress Site.
Visibility Mistakes to Avoid
The biggest mistake is treating device hiding as privacy. Content hidden only by device type may still exist in the page code, where it can be found by anyone who views the source. Never hide private, sensitive, or member-only content with device rules alone. For genuinely restricted content, use proper access controls, such as membership or user-role rules, and test while logged out to confirm the restriction works.
A second mistake is hiding so much that the page becomes hard to maintain. Two versions of a section are manageable, but five versions will drift apart and confuse future editors.
A third mistake is forgetting hidden blocks entirely, which leaves outdated content waiting to reappear. Review hidden blocks whenever you update a page, and delete ones you no longer need. For the security side of managing a site, see How to Secure a WordPress Site.