How to include or exclude pages from header menu navigation bar in Wordpress
So, how to customize WordPress header navbar:
Adding too many pages to a WordPress blog that has a navigation bar in the header can really make your Wordpress blog a mess. There are options to control what pages are shown in the navigation bar and even a way to add external links.
Ok, open folder where WordPress installed: wp-content/themes/YourThemeName/ and open header.php. And find this code:
<ul id="nav"><li><a href="/<?php echo get_settings(‘home’); ?>">Home</a></li><?php wp_list_pages('title_li=&depth=2&sort_column=menu_order'); ?></ul>
A little added code can either include or exclude any page or pages but the first thing to do is find the page numbers of the pages you want to include or exclude. Log in to the admin, usually it place: http://www.YouSiteName.com/wp-admin/. Click on Pages -> Edit page. And look at the URL: 43 is Your page ID