How To Add Custom Menus To WordPress Website

How To Add Custom Menus To WordPress Website

Menu management has always been considered a highlight of WordPress, allowing you to control navigation menus flexibly. Through the convenient drag-and-drop interface, free from the limitations of the theme itself, create various combinations of links: internal links, external links, classification, etc., and can embed these custom menus into any location of the theme, feel that WordPress is getting closer and closer to the CMS program. Of course, all these functions need thematic support. Earlier, I wrote an article on how to support WordPress custom menus. Today I'll teach you how to add more than one custom menu. Take two examples. register_nav_menus( array( 'header-menu' => __( 'mainmenu' ), 'footer-menu' => __( 'footmenu' ) ) ); the header-menu and footer-menu are used after the name of the menu (can be arbitrary), the Chinese part will be displayed in the background menu settings page. 2. Add the calling code to the location where…