[resolved] Add home page link in menu (Sandbox theme) (3 posts)

  1. jhenninger
    Posted 5 years ago #

    Hi, I'm wondering how I might go about inserting a home page link into my menu bar (navigation bar) using the Sandbox theme. As you can see on my website (http://infini9.com/wordpress/) there are links to work, clients, about, contact.. but not home!

    I think it's done by editing the functions.php file (I may be wrong though), this area.

    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

    Can anyone direct me as to how to do this?


  2. jhenninger
    Posted 5 years ago #

    I decided to add support for menu's, and use that to accomplish it rather than Sandbox's default menu.

  3. jhenninger
    Posted 5 years ago #

    If anyone else is having trouble with this, here is a solid guide for a better means to accomplish this than using Sandbox's built in menu: http://codex.wordpress.org/Navigation_Menus

Topic Closed

This topic has been closed to new replies.

About this Topic