Menu Default
All Menu Items #All Menu Items
.menu-item
This class is added to every menu item.
.menu-item-has-children
This class is added to menu item which has sub-items .
.menu-item-object-{object}
This class is added to every menu item, where {object} is either a post type or a taxonomy.
.menu-item-object-category
This class is added to menu items that correspond to a category.
.menu-item-object-tag
This class is added to menu items that correspond to a tag.
.menu-item-object-page
This class is added to menu items that correspond to static pages.
.menu-item-object-{custom}
This class is added to menu items that correspond to a custom post type or a custom taxonomy.
.menu-item-type-{type}
This class is added to every menu item, where {type} is either “post_type” or “taxonomy”.
.menu-item-type-post_type
This class is added to menu items that correspond to post types: i.e. static pages or custom post types.
.menu-item-type-taxonomy
This class is added to menu items that correspond to taxonomies: i.e. categories, tags, or custom taxonomies.
Link: https://developer.wordpress.org/reference/functions/wp_nav_menu
PreviousĐăng ký một class để được tự động tảiNextRemove cart + checkout, add class, change label woocomerce (ok)
Last updated