How Do I Add a Menu Item
If You Want to Add Menu Items to One of the Descendant Activities, Override onCreateOptionsMenu() in That Activity. Call Super. onCreateOptionsMenu(menu) So...
If you want to add menu items to one of the descendant activities, override onCreateOptionsMenu() in that activity. Call super. onCreateOptionsMenu(menu) so the original menu items are created, then add new menu items with menu. add() .
- Login to the WordPress Dashboard.
- From the ‘Appearance’ menu on the left-hand side of the Dashboard, select the ‘Menus’ option to bring up the Menu Editor.
- Select Create a new menu at the top of the page.
- Enter a name for your new menu in the Menu Name box.
- Click the Create Menu button.
- Introduction.
- 1On the WordPress Dashboard, click the Menus link on the Appearance menu.
- 2Enter a menu name in the Menu Name field and then click Create Menu.
- 3In the Theme Locations module, select your new menu from the Primary Menu drop-down list and click Save.