Jump to content
Sign in to follow this  
jscurr

Extra Widget appearing on page

Recommended Posts

jscurr

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

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

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

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

"

  • " 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

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×