wp_list_pages()to generate the site navigation. Both functions create a bit of a mess of CSS classes, though.
A mix of underscores and dashes is used.
page_item page-item-21 cat-item cat-item-16 current-cat-parent current_page_parent
Why not simply
Also an equivalent for
current_page_ancestorseems to be missing for categories (e.g.
Any tips on working with this stuff? Please share your experiences.
- The topic ‘Inconsistent CSS class names for listing pages/categories’ is closed to new replies.