What You’ll Learn
- How to add custom menu items to the navigation
- How to control menu position
- How to customize menu icons
Prerequisites
- MainWP Dashboard version 4.5 or newer
- Custom Dashboard extension (free) or access to your theme’s functions.php
Add a Custom Menu Entry
1
Open Custom Dashboard
Navigate to the Custom Dashboard extension settings.
2
Add the PHP code
Go to the PHP tab and add the following code:

3
Customize the values
Modify the
$addition_item[] values for your needs:| Value | Description | Example |
|---|---|---|
| Title | Text displayed in menu | 'My Custom Page' |
| Parent key | Keep as 'mainwp_tab' | 'mainwp_tab' |
| URL | Page URL or admin slug | 'admin.php?page=MyPage' |
| ID | HTML element ID | 'my_custom_id' |
| Icon | Fomantic UI icon class | 'chart bar' |
4
Change position (optional)
Modify the
$index value to control where the menu item appears:0= First position1= Second position2= Third position
5
Save changes
Click Save Changes. The new menu entry appears immediately.

Add an Icon
To add an icon, use a class from the Fomantic UI icon library:'home'- Home icon'cog'- Settings gear'chart bar'- Bar chart'user'- User icon'envelope'- Email icon
Self-Check Checklist
- Custom Dashboard extension installed
- PHP code added to PHP tab
- Menu title and URL customized
- Position index set correctly
- Changes saved
- New menu entry visible in navigation
Related Resources
- Custom Dashboard Extension - Extension documentation
- Add WP Admin Button - Add admin link to navigation
- Change Default Page After Login - Customize landing page