Admin like menu
-
I am trying to get a menu like the admin menu setup on my frontpage. My only problem is I can’t get it so that when a submenu item is active that the perant menu is also active.
The URL to my site is https://www.swanlakchurch.org/
Here is the code for my menu:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <title><?php bloginfo('name'); ?></title> <!--[if IE]> <style> #searchbox{height:80px; margin-bottom:5px;} </style> <![endif]--> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>"> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>"> <script type="text/javascript"> function switchit(tochange){ var one = document.getElementById('none').style; var two = document.getElementById('ntwo').style; var three = document.getElementById('nthree').style; one.display = "none"; two.display = "none"; three.display = "none"; var visi = document.getElementById(tochange).style; visi.display = "block"; } </script> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen"> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>"> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> <?php wp_head(); ?> </head> <body> <div id="top"> <div id="container"> <div id="header"></div> <ul id="nav1"> <?php wp_list_pages('depth=1&sort_column=menu_order&title_li='); ?></ul> <?php if($post->post_parent) $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul id="nav2" class="nav2"><li> </li><?php echo $children; ?></ul> <?php }else{ ?> <ul id="nav2" class="nav2"><li> </li></ul> <?php } ?> <div id="content"> <div id="left">
- The topic ‘Admin like menu’ is closed to new replies.