Each blog is unique but you can find something you don’t like and want to change. Good if a blog is made professionally so it is possible that you will not need to change any .php file. I want to tell you that every blog has a menu bar. There may be a limited number of pages displayed in a menu bar so I will tell you how to hide pages from the menu bar.
First, there are several ways you can hide or remove pages from the menu bar so I will tell you the most accepted for me. Also I want to mention that if you remove/hide a page from the menu bar a page will not be removed just a link from the menu to that page.
Well, in order to follow the next steps you need to know a bit of html or php coding but if you do not even understand it this should not be difficult just follow the steps.
wp_list_pages(), tag, that displays pages we want to hide as links. Remember that we want to hide links not to remove pages. You can use it to customize a header or a sidebar. To hide pages you need to exclude these pages. This is exclude parameter we will use:
<ul>
<?php wp_list_pages('exclude=17,38' ); ?>
</ul>
This can be found in you header.php file. You need to edit header.php. Just go to Design->Theme editor->Header.php if you use old WordPress version this can be found in another way. When you clicked on header.php try to find something similar to this:
<?php wp_list_pages('exclude=330 sort_column=menu_order&depth=1&tit
As you can see I exclude page 330 (330 is ID of the page). This way you can hide as many pages as you want.
Related posts:






Dec 9, 2008 at 16:55:25
This looks like a good tip. I’m not yet to the point of needing to hide pages from the menu bar (I only have four up there now, although I will probably add a few more for things like a privacy policy and perhaps a download or affiliate links page) but this may be useful later.