change navigation on header

change navigation on header

Postby zaphod » Sat Sep 11, 2010 8:15 pm

How can I change the navigation on the header? For example, how do I get rid of "Home"? Or how can I include posts as well as pages?
Thanks.
zaphod
 
Posts: 2
Joined: Sat Sep 11, 2010 8:08 pm

Re: change navigation on header

Postby Mina » Sat Sep 11, 2010 9:07 pm

To get rid of home, go into Admin >> Appearances >> Editor >> header.php and find this line:
  Code:
$string = wp_page_menu ('show_home=1&depth=1&title_li=');

and change show_home=1 to show_home=0.

And as far as I know you can't put posts into the menubar, but you can put Categories. Try adding this code directly above the closing "menu" </div> tag:
  Code:
<ul><?php wp_list_categories('title_li='); ?></ul>

Read this page in the Codex to get more information about listing categories.
User avatar
Mina
Cloisters Mama
 
Posts: 364
Joined: Fri Aug 14, 2009 8:42 pm

Re: change navigation on header

Postby zaphod » Sun Sep 12, 2010 11:24 am

Thanks: that was fast! I'll give the edit a try.
zaphod
 
Posts: 2
Joined: Sat Sep 11, 2010 8:08 pm


Return to Quietly Simple

Who is online

Users browsing this forum: No registered users and 0 guests

cron