jscurr 0 Report post Posted March 31, 2010 Hi, I have an extra widget appearing on all sub-navigation pages when i don;t want it to. I am unsure why it is appearing as there is nothing selected in the Appearance > Widgets area that would suggest it should be there. For an example of what i mean please visit www.innov8consulting.com.au/about/about-us as an example, or any other sub-navigation page. Thanks, James. Share this post Link to post Share on other sites
cmunns 16 Report post Posted April 1, 2010 Are you talking about the widget that has a title of "about us" but is empty? It looks like it's duplicating the title of the page. I ran a markup validator and it looks like the subnav is missing a bracket on the closing `` tag Share this post Link to post Share on other sites
jscurr 0 Report post Posted April 1, 2010 Hi Adam, Not sure, it looks like it is correct. Here is the subnav code: <div id="subnav" class="fix"> <?php if($post->post_parent || wp_list_pages("title_li=&child_of=".$post->ID."&echo=0")):?> <?php if(count($post->ancestors)>=2){ $reverse_ancestors = array_reverse($post->ancestors); $children = wp_list_pages("title_li=&depth=1&child_of=".$reverse_ancestors[0]."&echo=0&sort_column=menu_order"); }elseif($post->post_parent){ $children = wp_list_pages("title_li=&depth=1&child_of=".$post->post_parent."&echo=0&sort_column=menu_order"); }else{ $children = wp_list_pages("title_li=&depth=1&child_of=".$post->ID."&echo=0&sort_column=menu_order");} if ($children) { echo $children;} ?> <?php endif;?> </div><!-- /sub nav --> Share this post Link to post Share on other sites
jscurr 0 Report post Posted April 1, 2010 Hmmm...cut and paste left out a couple of lines. <ul) appears of Line 2 and appears on Line 17 after <?php endif;?> and before </div><!-- /sub nav --> Share this post Link to post Share on other sites
jscurr 0 Report post Posted April 1, 2010 " " appears of Line 2 and " " appears on Line 17 after <?php endif;?> and before </div><!-- /sub nav --> Share this post Link to post Share on other sites
jscurr 0 Report post Posted April 1, 2010 ok, i don't know how to get the ul code to show up, but the brackets are definately closed. Share this post Link to post Share on other sites
cmunns 16 Report post Posted April 2, 2010 Do you have the plugin "custom menu links"? I think the missing tag is in there somewhere? Also, for troublshooting purposes try disabling that plugin to see what happens and make sure that you don't have any widgets with empty titles in them. Share this post Link to post Share on other sites
jscurr 0 Report post Posted April 2, 2010 Unreal... thanks again Adam. It was actually just a tick box setting in the plugin that i did notice. Share this post Link to post Share on other sites