[wp-docs] WordPress-Generated CSS Classes for Menus (Chip Bennett)

Evan Cordulack ecordulack at gmail.com
Wed Apr 18 16:56:30 UTC 2012


I think both of you raise good points.

Could we leave's Chips references as is and then use a WordPress Lesson to show examples of the generated html and some use cases?  That way, the page that Chip updated won't get too cluttered and we can provide a little more information for beginners who might need it.

Would that work?


On Apr 18, 2012, at 12:42 PM, Chip Bennett wrote:

> Tom,
> 
> I'm conflicted regarding adding basic CSS/HTML markup examples to the Codex. Once one knows the classes that are applied to the HTML LI tags, using those tags for CSS styling should be fairly trivial. Do we do this elsewhere in the Codex?
> 
> If need be, we can add examples from Twenty Eleven's style.css...
> 
> Chip
> 
> On Wed, Apr 18, 2012 at 11:27 AM, Tom Auger (personal) <tomaugerdotcom at yahoo.ca> wrote:
> Chip, that's awesome stuff, and a very valuable reference for beginners.
> With that in mind, I think it would be very beneficial to provide some
> little CSS examples to illustrate common use cases, for instance:
> 
> - how to highlight the menu item of the current page that you're on
> - how to highlight the parent of the current menu item, when in a pull-down
> (hierarchical) context
> - how to colour menu items differently depending on post type
> 
> Tom
> 
> _______________________________________________
> wp-docs mailing list
> wp-docs at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-docs
> 
> _______________________________________________
> wp-docs mailing list
> wp-docs at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-docs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-docs/attachments/20120418/324f8dd2/attachment.htm>


More information about the wp-docs mailing list