Minor addition to _page_level_out
|Reported by:||anselm1109||Owned by:||markjaquith|
By inserting the included code on line 416 in template-functions-post.php, we can increase the styling capability of the wp_list_pages() template tag. This adds a class for parent li's which makes more advanced navigation styles possible.
if ( $page_id == $queried_obj->post_parent )
$css_class .= ' parent_page_item';
I would love it if someone can make help to expand this so that it can recognize more than one level of sub pages.
Change History (16)
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
- Keywords has-patch added
- Milestone changed from 2.5 (future) to 2.4 (next)
- Resolution set to fixed
- Status changed from assigned to closed