Jump to content


Photo
- - - - -

Extra Widget appearing on page


This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1 jscurr

jscurr

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 31 March 2010 - 10:03 PM

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.

#2 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 01 April 2010 - 03:55 AM

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

#3 jscurr

jscurr

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 01 April 2010 - 08:52 PM

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

#4 jscurr

jscurr

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 01 April 2010 - 08:54 PM

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

#5 jscurr

jscurr

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 01 April 2010 - 08:56 PM

"
    " appears of Line 2 and "
" appears on Line 17 after <?php endif;?> and before </div><!-- /sub nav -->

#6 jscurr

jscurr

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 01 April 2010 - 08:57 PM

ok, i don't know how to get the ul code to show up, but the brackets are definately closed.

#7 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 02 April 2010 - 07:14 AM

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.

#8 jscurr

jscurr

    Advanced Member

  • Members
  • PipPipPip
  • 37 posts

Posted 02 April 2010 - 07:59 AM

Unreal... thanks again Adam. It was actually just a tick box setting in the plugin that i did notice.