How to Exclude Pages from the Menu in WordPress

Often bloggers need to create pages in their blog, but they do not want to display them in the menu. In this article we show you how to exclude pages from the menu in WordPress. Most of the time the menu is located in yoursidebar.phpbut it can be located in other files. Open that file and locate the following code: Replace the following code with: Now you can change the number to the page ID and that page will not be displayed in the menu. For more details see WordPress codex There is also a plugin that allows you to do this. It is called Exclude Pages.
Share on Google Plus

About K. M. Emrul Hasan

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment