[wp-hackers] Page ancestry and CSS
Simon Wheatley
simon at sweetinteraction.com
Mon Jul 27 13:16:41 UTC 2009
Should do in 2.8, I think. Check out the start_el method of class
Walker_Page in wp-includes/classes.php for how/where it's doing it.
Try making a page structure and check out the CSS classes on the LI elements.
S
On Mon, Jul 27, 2009 at 1:04 PM, SoJ Web<sojweb at indiana.edu> wrote:
> Not that I'm aware of... is it supposed to?
>
> -Jeff
>
>
> On Jul 27, 2009, at 2:02 AM, Simon Wheatley wrote:
>
>> 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'?
>>
>> S
>>
>>
>> ---
>> Sweet Interaction Ltd is Registered in England/Wales, no. 6610741
>> Registered office: 7 Malton Av, Manchester, M21 8AT
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Simon Wheatley
Sweet Interaction Ltd
Web Interaction Design & Development
Tel: 07971 687295
Consulting for Stephen Fry: http://stephenfry.com/
Blog functionality for DfID - http://blogs.dfid.gov.uk/
House of Illustration site - http://houseofillustration.org.uk/
Blog for the Royal Navy - http://jackspeak.royalnavy.mod.uk/
---
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