Support » Themes and Templates » Inconsistent CSS class names for listing pages/categories

  • I’m using wp_list_categories() and 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 current-page here?

    current-cat current_page_item

    Also an equivalent for current_page_ancestor seems to be missing for categories (e.g. current-cat-ancestor).

    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.