[wp-hackers] Page ancestry and CSS

Simon Wheatley simon at sweetinteraction.com
Mon Jul 27 06:02:44 UTC 2009

On Sun, Jul 26, 2009 at 9:31 PM, SoJ Web<sojweb at indiana.edu> wrote:
> This works fine if the hierarchy is only 2-deep; beyond
> that, however, it fails, because WordPress only adds the
> "current-page-parent" class to a page's immediate parents, and not to the
> parents of the parent.

Doesn't it add 'current-page-ancestor' and 'current-page-descendant'?


Sweet Interaction Ltd is Registered in England/Wales, no. 6610741
Registered office: 7 Malton Av, Manchester, M21 8AT

More information about the wp-hackers mailing list