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)
10 years ago
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned