The MU forums have moved to WordPress.org

"current_page_ancestor" CSS hook not getting added to <li> tags (2 posts)

  1. benknight
    Member
    Posted 14 years ago #

    I'm using WordPress MU and on all of my sub-blogs, after calling the wp_list_pages() function with parameters 'title_li=&child_of=0' the "current_page_ancestor" class is not getting assigned to any of the current page's ancestor links. The only CSS hooks I have to work with are "current_page_item" for the current page's link and "current_page_parent" for the current page's parent.

    This is problematic when I'm on any page with a depth of 2 or greater because I lose CSS hooks on its ancestors. I need these because I'm implementing an expandable/collapsible menu and I need a page's ancestor to be expanded while viewing that page so that the user knows their location.

    On my main blog in the MU system however I'm not having this problem - the "current_page_ancestor" is always there. It seems to only be a problem on sub-blogs. Any ideas?

  2. andrea_r
    Moderator
    Posted 14 years ago #

    Got firebug?
    Got a link to your site so we can see?
    Are they all using the exact same theme?

About this Topic

  • Started 14 years ago by benknight
  • Latest reply from andrea_r