StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-04-2009, 08:05 PM
lipstickx lipstickx is offline
Registered User
Genesis Member
 
Join Date: Feb 2009
Posts: 11
Default Child Categories Not Dropping Down in SubNav

My child categories are not dropping down from my subnav bar on the home page. The navbar is working correctly. I have test posts in all parent and child categories, and the posts are working.

Now, I have dots appearing in my subnav, too. I'm afraid I may have massacred the code!

Here is the website in referrence (it's still a demo site) http://s58507.gridserver.com

and here is my header.php *********************************

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="distribution" content="global" />
<meta name="robots" content="follow, all" />
<meta name="language" content="en" />

<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
<link rel="Shortcut Icon" href="<?php echo bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />

<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="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>

<script type="text/javascript"><![CDATA[//><!--
sfHover = function() {
if (!document.getElementsByTagName) return false;
var sfEls = document.getElementById("nav").getElementsByTagNam e("li");

// if you only have one main menu - delete the line below //
var sfEls1 = document.getElementById("subnav").getElementsByTag Name("li");
//

for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}

// if you only have one main menu - delete the "for" loop below //
for (var i=0; i<sfEls1.length; i++) {
sfEls1[i].onmouseover=function() {
this.className+=" sfhover1";
}
sfEls1[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
}
}
//

}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>

</head>

<body>

<div id="wrap">

<div id="topnavbar">

<div class="topnavbarleft">


<script src="<?php bloginfo('template_url'); ?>/javascript/date.js" type="text/javascript"></script></p>
</div>

<div class="topnavbarright">


[img]<?php bloginfo('template_url'); ?>/images/rss.gif[/img]" />News Feed</p>
</div>

</div>

<div id="header">

<div class="headerleft">
[img]<?php bloginfo('template_url'); ?>/images/logo.png[/img]" />
</div>



<div class="headerright">
<ul id="headerwidgeted">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('468x60 Header Banner') ) : ?>
[*][img]<?php bloginfo('template_url'); ?>/images/468x60.gif[/img]
<?php endif; ?>[/list] </div>

</div>

<div id="navbar">

<div id="navbarleft">
<ul id="nav">
[*]Home
<?php wp_list_pages('title_li=&depth=4&sort_column=menu_ order'); ?>
[/list] </div>

<div id="navbarright">
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" value="Search this website..." name="s" id="searchbox" onfocus="if (this.value == 'Search this website...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search this website...';}" />
<input type="submit" id="searchbutton" value="GO" /></form>
</div>

</div>

<div style="clear:both;"></div>

<div id="subnavbar">

<ul id="subnav">
<?php wp_list_categories('name&title_li=&depth=4&sort_co lumn=menu_order&include=17'); ?>
<?php wp_list_categories('name&title_li=&depth=4&sort_co lumn=menu_order&include=19'); ?>
<?php wp_list_categories('name&title_li=&depth=4&sort_co lumn=menu_order&include=20'); ?>
<?php wp_list_categories('name&title_li=&depth=4&sort_co lumn=menu_order&include=18'); ?>
[/list]
</div>



<div style="clear:both;"></div>

************************************end of header.php*****************************

Help!

Terri
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Navbar Categories Dropping to Second Row kenfobert General Discussion 3 01-18-2010 12:35 PM
SubNav SubCats Not Dropping Down markr General Discussion 4 07-17-2009 12:30 PM
Parent Pages On Subnav Dropping down Really far wparlaman General Discussion 1 03-15-2009 10:22 PM
categories in subnav bar bineabble General Discussion 1 12-14-2008 11:21 PM


All times are GMT -5. The time now is 08:19 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.