Forums

[resolved] Sandbox theme Main Menu problem (2 posts)

  1. chaski
    Member
    Posted 2 years ago #

    The following function appears to regulate the main menu in the Sandbox theme and causes the unordered list to display horizontally. I would like to revert to a standard list (displaying vertically), on a site, but every time I adjust the code I break everything:

    // 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
    }
  2. ensio1
    Member
    Posted 1 year ago #

    Have you edited style.css, too?:


    div#menu ul li,div.gallery dl,div.navigation div.nav-previous {
    float:left;
    }

    As you can see, all list elements in $menu are floating left.

Topic Closed

This topic has been closed to new replies.

About this Topic