WordPress: Adding Home Page Link to Pages Menu
Adding a “Home” link to the Pages Menu in WordPress 2.9.2.
Example site: http://www.toryclark.com/
One simple change to the header.php file makes the Home page link show up in the Pages Menu. Add the number “1” between the = symbol and the & symbol. See red-colored 1 in the second example below:
Find:
<?php wp_page_menu(‘show_home=&sort_column=menu_order, post_title&link_before=<span>&link_after=</span>’); ?>
Change to:
<?php wp_page_menu(‘show_home=1&sort_column=menu_order, post_title&link_before=<span>&link_after=</span>’); ?>
Lots of help from the WordPress codex: http://codex.wordpress.org/Template_Tags/wp_page_menu
I really dig what you write on here. We try and come back to it every day so keep up the good articles!
oh man thats too funny. I am looking for a way to make the nav menu horizontal and found this page through a google search. Whats funny about it is that i’m working on editing the exact same theme. take a look at my link.
So yeah, do you have any idea as to how i could change this nav menu to a horizontal one from the current drop down style it is now?
Hey Ryan, That is too funny – LOL. Yeah, my client found that Fashion Blog template at Template Monster and I’ve been customizing it. I never tried to make the nav go horizontally, so I have no idea. Sorry. Off the top of my head, it’ll be a bunch of changes in the CSS. Although, going from vert to horz or visa-verse always takes me forever to figure out. My resources for this are: http://css.maxdesign.com.au/index.htm and http://wphacks.com/top-5-wordpress-navigation-menu-tutorials/ . I hope that helps.