[theme-reviewers] Theme Review Challenge and Second Opinion

Chip Bennett chip at chipbennett.net
Wed Mar 20 01:50:20 UTC 2013


Note, if you want to add a parent class for the fallback wp_page_menu, I
think this should work:

function prefix_add_parent_class( $css_class, $page, $depth, $args ){
    if ( ! empty( $args['has_children'] ) )
        $css_class[] = 'parent';
    return $css_class;}
add_filter( 'page_css_class', 'prefix_add_parent_class', 10, 4 );


(Untested, for the moment.)


On Tue, Mar 19, 2013 at 9:43 PM, Amy Hendrix <sabreuse at gmail.com> wrote:

> You were just carried away with your Genericon enthusiasm ;)
>
>
> On Tue, Mar 19, 2013 at 9:40 PM, Chip Bennett <chip at chipbennett.net>wrote:
>
>> Okay, so I love Genericons, but am no good at posting my own development
>> server URL:
>>
>> http://design.chipbennett.net/oenology/blog
>>
>>
>> On Tue, Mar 19, 2013 at 9:39 PM, Chip Bennett <chip at chipbennett.net>wrote:
>>
>>> Yep; it works like a charm:
>>> http://dev.chipbennett.net/oenology/blog
>>>
>>> (Also: I love Genericons!)
>>>
>>>
>>> On Tue, Mar 19, 2013 at 9:32 PM, Bryan Hadaway <bhadaway at gmail.com>wrote:
>>>
>>>> Cool, so in the future I could use this technique to get the class in
>>>> there in order to have the dropdown arrows as apposed to the jQuery trick
>>>> (which will obviously have much more load) that I'm using to get .parent?
>>>> If that's correct, I'll definitely put that on my list of improvements to
>>>> be made.
>>>>
>>>> _______________________________________________
>>>> theme-reviewers mailing list
>>>> theme-reviewers at lists.wordpress.org
>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130319/ca5b42e0/attachment-0001.htm>


More information about the theme-reviewers mailing list