Add a Dividing Line in your Vertical Menu

To add a divider as a menu item in the WordPress admin menu, you can use the following steps:

  • Go to your WordPress admin dashboard.
  • Navigate to “Appearance” and then “Menus.”
  • In the Menu Editor, click on “Custom Links” on the left side.
  • Add # as the URL (this is just a placeholder and won’t be used).
  • Enter a name for the link, for example, “Divider.”
  • Click on the “Add to Menu” button.
  • After adding the custom link, it will appear in the menu structure.
  • Click on the custom link to reveal additional options.
  • In the “Navigation Label” field, enter a non-breaking space:  . This will prevent the label from displaying.
  • In the “CSS Classes” field, add a custom class, for example, menu-divider.
  • Go to “Appearance” and then “Customize.”
  • Select “Additional CSS.”
  • Add the following CSS code: