Adding & Managing Dividers
Custom dividers are horizontal separator lines that you can insert between menu items to create clearly defined visual groups in the admin sidebar. They help organize a long menu into logical sections, making it faster to scan and find what you need.
Adding a Divider
- Enter edit mode by clicking “Edit Menu” at the top of the sidebar.
- Click the blue “Add Divider” button that appears at the bottom of the menu while in edit mode.
- A new divider — displayed as a thin horizontal line — is inserted into the sidebar.
- Drag the divider to the desired position between any menu items.
- Click Save to apply.
You can add as many dividers as you need. Each one can be positioned independently to create multiple visual sections.
Removing a Divider
- Enter edit mode.
- Hover over the divider you want to remove.
- Click the red × button that appears on the divider.
- The divider is immediately removed from the menu.
- Click Save to apply the change.
Divider Behavior
- Fully draggable — Dividers can be moved to any position in the menu, just like regular items. Drag them between groups to create the layout you want.
- Visible to everyone — Unlike hidden menu items, dividers are visible to all users, not just administrators. They serve as a universal visual guide.
- Replace default separators — WordPress includes a few default separator lines in the admin menu. When you save a custom menu configuration, your custom dividers replace those default separators, giving you full control over where visual breaks appear.
How Dividers Are Stored
Each divider is assigned a unique ID based on its creation timestamp (e.g., idamc-divider-1705312000000). This timestamp-based ID ensures there are no conflicts even when multiple dividers exist. Divider IDs and positions are saved alongside the menu order in the idamc_menu_order option. When the menu is rendered, the plugin creates separator entries at the stored positions using these IDs.
Tip: A common layout is to group “Content” items (Posts, Pages, Media) together, then add a divider, followed by “Design” items (Appearance, Menus), another divider, and then “Admin” items (Plugins, Users, Tools, Settings).
