Wordpress "Home" link

Posted by Johann on Stack Overflow See other posts from Stack Overflow or by Johann
Published on 2010-06-17T23:57:19Z Indexed on 2010/06/18 0:03 UTC
Read the original article Hit count: 384

Filed under:
|

Hi all,

I'm working on a Sandbox based Wordpress theme and I would like to add a home link as a first item in the navigation. I know I should change the function in "sandbox_globalnav" in the functions.php file, which is:

// Produces a list of pages in the header without whitespace
function sandbox_globalnav() {
if ( $menu = str_replace( array( "\r", "\n", "\t" ), '', wp_list_pages('title_li=&sort_column=menu_order&echo=0') ) )
    $menu = '<ul>' . $menu . '</ul>';
$menu = '<div id="menu">' . $menu . "</div>\n";
echo apply_filters( 'globalnav_menu', $menu ); // Filter to override default globalnav: globalnav_menu

}

However, my PHP skills are really basic and I'm not sure where I should override this.

Thanks!

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about navigation