[wp-hackers] current_page_ancestor class lost on Tertiary pages?
Patrik Bóna
patrik.bona at mrhead.sk
Wed Sep 15 17:30:02 UTC 2010
And that is one of the reasons why i don't like new menu system so much ;).
Btw. did you try to use custom walker function for generating menu ?
Maybe you can "fix" it this way. (I am not sure, maybe i am totally wrong ;)
Patrik
On 09/14/2010 11:22 PM, Louis McCoy wrote:
> That's what I was afraid of.
>
> The question, then, would be why have both current_page_ancestor and
> current-menu-ancestor if it isn't looking at the page hierarchy anyway?
> Seems redundant to me...
>
> On Tue, Sep 14, 2010 at 5:11 PM, Dan Smart<dan at dansmart.co.uk> wrote:
>
>
>> The issue you have is that the menu doesn't look at the page hierarchy,
>> only the menu hierarchy. So you need to add X1 to X22 to the menu, then the
>> correct classes will appear.
>>
>> Dan
>>
>> Dan Smart - Web Developer
>> www.dansmart.co.uk
>>
>> On 14 Sep 2010, at 20:31, Louis McCoy<louie at louiemccoy.com> wrote:
>>
>>
>>>> How deep are these levels? Can you be more specific about the overall
>>>> menu structure or link to an actual example?
>>>>
>>> It's just the third level - I should have been more clear; it's not the
>>>
>> menu
>>
>>> that is three levels deep, it's the page structure. So, this is the page
>>> structure:
>>> I. Foo
>>> A. Bar
>>> 1. X1
>>> 2. X2
>>> ...
>>> 22. X22
>>> B. Saloon
>>> C. Tavern
>>> II. Foo Fighers
>>> III. More Foo
>>>
>>> But this is the menu structure, since the menu by design doesn't go
>>>
>> deeper
>>
>>> than two levels:
>>> I. Foo
>>> A. Bar
>>> B. Saloon
>>> C. Tavern
>>> II. Foo Fighters
>>> II. More Foo
>>>
>>> BUT, once I get to X1 / X22 etc. Foo loses the current_page_ancestor
>>>
>> class.
>>
>>> Is this just because they're not a part of the menu structure? Shouldn't
>>> Foo, being an ancestor of X1, still keep the current_page_ancestor class,
>>> even if X1 isn't in the menu structure?
>>>
>>> Hope I was clearer this time... :-)
>>>
>>> -L
>>> _______________________________________________
>>> 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
>>
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
More information about the wp-hackers
mailing list