We'll create fresh WordPress site with Add menu separators to navigation installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Allow separator (HR
/ line) and unlinked, text-only entries in WordPress’ classic navigation menus.
This plugin does not support the Block Editor or the navigation block. It is intended for use with the classic menus (e.g. wp_nav_menu
).
/wp-content/plugins/
directory---
(three dashes) as link text for a horizontal line or use #
as a URL for an unlinked menu entry.Version 2.1.0 of the plugin added two filters, with which developers can customise the output.
mhm-menu-separator/separator
allows customisation of a separator output. Receives the arguments '<hr class="mhm-menu-separator">'
(the uncustomised HTML) and $item
(the menu item).mhm-menu-separator/title
allows customisation of an unlinked menu entry. Receives the arguments $item->post_title
(the plain, unlinked menu item text) and $item
(the menu item).