Easy way to remove pages from the main menu in WordPress

I fell in love with WordPress the first time I used it. It’s just so damn intuitive and simple (for the most part)! Nonetheless, there are some things that aren’t so obvious. The other day, I encountered one of these on this very website. The problem was that, after creating a new page, it was visible in the website’s main menu. Now, I did not want this page in the main menu, but there was no option to hide it in the page manager.

Fortunately, there’s an easy way to remove pages from the main menu in WordPress. What we need to do is to create a custom menu in which we add only the pages we want.

Let’s say we create a new page called Test:

Creating our new page

Our menu will look something like this:

Menu with both pages

But the thing is, we don’t want Test to appear in our menu, so we need to go to Appearance->Menus and create a new menu.

Creating a new Menu

Now, we can add the pages we want to appear in our menu by selecting the checkbox next to them and click “Add to menu” .

adding a new page to the menu

Once you have all your pages, you need to select the “Primary Menu” box. 

Making our menu the primary menu

When all this is done, click on “Save menu” and there you go!

Fixed menu

I hope you’ve enjoyed this article and don’t forget to come back for more!

-Icosebyte