You have to extend the Walker_Nav_Menu
class with your own class to modify WP Nan Menus
.
One of the best example is wp_bootstrap_navwalker. You can also extend walker class to built custom navigation structures.
You have to extend the Walker_Nav_Menu
class with your own class to modify WP Nan Menus
.
One of the best example is wp_bootstrap_navwalker. You can also extend walker class to built custom navigation structures.