Custom menu creation in wordpress

To register a navigation menu in WordPress the function : register_nav_menus() should be added in functions.php file. This will create a menu tab in wordpress control panel.

To customize the default menu, you have to enter the WordPress dashboard, click on Appearance and then on Menus.

Give the menu a name, and then click the Create Menu button. After creating it, you may start adding your menu items. All your website’s categories, posts, and pages are gathered in the left column, and from there, you can simply add them to your custom menus in just a few clicks. Click on ‘save menu’ to save your changes.

wp_nav_menu() function can be added to the header or body page depending on where the menu needs to be displayed. The customization for the menu can be done by creating a class for the menu and then editing it.

To delete items from the custom menu, click on each page’s small arrow to the right and click the Remove button down below. 

Custom Links can be added to the menu options by clicking on ‘custom links’ in the left column. Each link needs an URL (its unique web address), and the Link Text (the name of the link in the menu). Click Add to Menu, and you’re done.

Leave a comment

Your email address will not be published. Required fields are marked *