Build a WordPress and Bootstrap ready Menu
An outstanding work from rootstheme. These functions drop all those post and menu classes, set the new walker as default WordPress navigation walker and also converts the code to bootstrap ready navbars. One of my favorite snippets and used on every site I build.
/** * Snippet Name: Build a WordPress and Bootstrap ready Menu * Snippet URL: https://wpcustoms.net/snippets/build-a-wordpress-and-bootstrap-ready-menu/ */ /** * Cleaner walker for wp_nav_menu() * * Walker_Nav_Menu (WordPress default) example output: *