Tools

Optimize the WordPress backend by hiding widgets

How to hide WordPress backend widgets with Code Snippets to manage

2 min read

The importance of optimizing your website's backend

If you have a website, you know that keeping the backend (the administration side, the one visitors don't see) tidy and efficient is essential. Even though no one else sees it, a well-organized backend is noticeable in the daily management of the site: you find what you're looking for faster and waste less time.

How to hide WordPress widgets in the backend

The simplest way is the Code Snippets plugin, the same one I used to remove items from the administration menu, as I explain in How to remove items from the WordPress administration menu with Code Snippets. With a code snippet, dashboard widgets get hidden. Step by step:

  1. Open the WordPress administration dashboard.
  2. Go to "Plugins" in the side menu and select "Add New".
  3. Search for "Code Snippets" and activate it.
  4. Go to "Snippets" in the side menu and select "Add New".
  5. Copy and paste the code into the text box.
  6. Give it a descriptive title, such as "Hide widgets in the backend".
  7. Click "Save Changes" and activate the snippet (a piece of saved and executable code).

That's it! The widgets you don't want are hidden in the backend.

Benefits of optimizing the backend

The clearest benefit is management: you save time and reduce clutter in the dashboard. And it does so without touching the appearance of the site for visitors; the aesthetic they see —like the day/night mode toggle button I explain in Day/Night mode toggle button: aesthetics and user experience— remains exactly the same.

Furthermore, taking care of even the part that isn't visible is a sign of professionalism. Order on the inside also builds image.

Overcoming WordPress backend challenges

It's common to approach the backend with little experience and a desire for efficient solutions. That's why I like this kind of fix: one snippet, two minutes, and a cleaner dashboard, without touching anything visitors see.