Support » Themes and Templates » problem with drop down menu and child pages…

  • Resolved t.davor


    i got Japanese Style theme installed and looks like that theme doesn’t support drop down menu (child pages). any idea what to change to get drop down menu working???
    my *nav* code looks like:

    <div id="nav">
    			<li <?php if(!is_page()) echo 'class="current_page_item"'; ?>><a href="<?php echo get_option('home'); ?>/">Home</a></li>
    			<?php wp_list_pages('title_li=&depth=0'); ?>

    and my CSS for nav is:

    /* Navigation
    #nav {
    	width: 800px;
    	height: 45px;
    	margin-left: 30px;
    	position: relative;
            top: 225px;
    #nav ul {
    	margin-left: 10px;
    	position: absolute;
    	bottom: -1px;
    	overflow: hidden;
    	height: 45px;
    #nav ul li {
    	float: left;
    	margin-right: 3px;
    	padding-left: 3px;
            font-weight: bold;
    #nav ul li.current_page_item {
            width: 122px;
            height: 45px;
    #nav ul li a {
            width: 122px;
            height: 45px;
            background: url(images/nav_bg.jpg) no-repeat;
    	display: block;
    	text-decoration: none;
    	color: #333;
    	line-height: 45px;
    	text-align: center;
    #nav ul li a:hover { color: #555; }
    #nav ul li.current_page_item a { background: url(images/nav_bg.jpg) no-repeat; color: #ff0000; }
Viewing 1 replies (of 1 total)
  • Chip Bennett


    Theme Review Admin

    The code you posted already supports display of Child Pages in the nav menu. See this:


    That depth=0 argument tells wp_list_pages() to display Pages of any depth.

Viewing 1 replies (of 1 total)
  • The topic ‘problem with drop down menu and child pages…’ is closed to new replies.