Title: Add menu separators to navigation
Author: Mark Howells-Mead
Published: <strong>May 4, 2016</strong>
Last modified: December 2, 2025

---

Search plugins

![](https://ps.w.org/mhm-menu-separator/assets/banner-772x250.png?rev=2463741)

![](https://ps.w.org/mhm-menu-separator/assets/icon.svg?rev=2463741)

# Add menu separators to navigation

 By [Mark Howells-Mead](https://profiles.wordpress.org/markhowellsmead/)

[Download](https://downloads.wordpress.org/plugin/mhm-menu-separator.zip)

 * [Details](https://sa.wordpress.org/plugins/mhm-menu-separator/#description)
 * [Reviews](https://sa.wordpress.org/plugins/mhm-menu-separator/#reviews)
 * [Development](https://sa.wordpress.org/plugins/mhm-menu-separator/#developers)

 [Support](https://wordpress.org/support/plugin/mhm-menu-separator/)

## Description

Allow separator (`HR` / line) and unlinked, text-only entries in WordPress’ classic
navigation menus.

### Block editor

**This plugin does not support the Block Editor or the navigation block**. It is
intended for use with the [classic menus](https://codex.wordpress.org/WordPress_Menu_User_Guide)(
e.g. `wp_nav_menu`).

### Usage

 1. Upload the plugin folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Edit your menu in the “Appearance” section of WordPress Admin. Add a custom link
    entry, then use `---` (three dashes) as link text for a horizontal line or use `#`
    as a URL for an unlinked menu entry.

### Filters

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).

## Reviews

![](https://secure.gravatar.com/avatar/467cbd88f443b49699c3c35b95940d8f28584d1fd1505d90925a7d3d10b50b5c?
s=60&d=retro&r=g)

### 󠀁[Fantastic](https://wordpress.org/support/topic/fantastic-2735/)󠁿

 [siljerud](https://profiles.wordpress.org/siljerud/) February 24, 2021 1 reply

Very easy to install and use. A real time-saver.

![](https://secure.gravatar.com/avatar/ad4c663dfec95b9a11e9e6384e8440f339d0064892ae0df8df1301932e7d8ac1?
s=60&d=retro&r=g)

### 󠀁[Wow, I love WordPress](https://wordpress.org/support/topic/wow-i-love-wordpress/)󠁿

 [holgerhubbs](https://profiles.wordpress.org/holgerhubbs/) July 1, 2017

I need something, I search for it and boom… it’s here! Thank you for this plugin,
exactly what I wanted.

![](https://secure.gravatar.com/avatar/4715841d6f90c891467d66d4a0f0bffea756c0fc58d03e9d2dc797b50c85d73e?
s=60&d=retro&r=g)

### 󠀁[Works as it says](https://wordpress.org/support/topic/works-as-it-says-2/)󠁿

 [mikechalmers](https://profiles.wordpress.org/mikechalmers/) January 25, 2017

Worked well right away. Thanks

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/mhm-menu-separator/reviews/)

## Contributors & Developers

“Add menu separators to navigation” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Mark Howells-Mead ](https://profiles.wordpress.org/markhowellsmead/)

“Add menu separators to navigation” has been translated into 1 locale. Thank you
to [the translators](https://translate.wordpress.org/projects/wp-plugins/mhm-menu-separator/contributors)
for their contributions.

[Translate “Add menu separators to navigation” into your language.](https://translate.wordpress.org/projects/wp-plugins/mhm-menu-separator)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/mhm-menu-separator/),
check out the [SVN repository](https://plugins.svn.wordpress.org/mhm-menu-separator/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/mhm-menu-separator/)
by [RSS](https://plugins.trac.wordpress.org/log/mhm-menu-separator/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.1.3

 * Fix post title comparison for correct output of HR tag.

#### 2.1.2

 * Fix version number. Sorry!

#### 2.1.1

 * Add plugin assets for plugin repository. (Not part of functional code.)

#### 2.1.0

 * Add filters for customisation of HTML output.

#### 2.0.1

 * Confirms compatibility up to WordPress 5.3.2.

#### 2.0.0

 * Confirms functionality up to WordPress 5.2.0.
 * Use short syntax for PHP arrays.
 * Code tidying (no functional changes).
 * Demands PHP 5.6.

#### 1.2.0

 * Add CSS class name to the menu separator HTML tag.
 * Confirmation of compatibility up to WordPress 4.9.8.

#### 1.1.4.1

 * Confirmation of compatibility with WordPress 4.7.4.

#### 1.1.4

 * Confirmation of compatibility with WordPress 4.7.
 * Swap out “key” variable for inline text domain keys, as recommended by the WordPress
   Translation team.
 * No functional changes.

#### 1.1.3

 * Confirmation of compatibility with WordPress 4.6.

#### 1.1.2

 * Remove unnecessary explicit translation entries for plugin name and description
   from the PHP source code.

#### 1.1.1

 * Add missing text domain definition for localization.

#### 1.1

 * Add plugin localization.
 * Add WordPress version checks.

#### 1.0

 * Initial public version.

## Meta

 *  Version **2.1.3**
 *  Last updated **5 months ago**
 *  Active installations **900+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.9.0**
 *  PHP version ** 5.6 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/mhm-menu-separator/) and [German (Switzerland)](https://de-ch.wordpress.org/plugins/mhm-menu-separator/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/mhm-menu-separator)
 * Tags
 * [menu](https://sa.wordpress.org/plugins/tags/menu/)[navigation](https://sa.wordpress.org/plugins/tags/navigation/)
   [sayhellogmbh](https://sa.wordpress.org/plugins/tags/sayhellogmbh/)[separator](https://sa.wordpress.org/plugins/tags/separator/)
   [wp_nav_menu](https://sa.wordpress.org/plugins/tags/wp_nav_menu/)
 *  [Advanced View](https://sa.wordpress.org/plugins/mhm-menu-separator/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/mhm-menu-separator/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/mhm-menu-separator/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/mhm-menu-separator/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/mhm-menu-separator/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/mhm-menu-separator/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/mhm-menu-separator/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/mhm-menu-separator/reviews/)

## Contributors

 *   [ Mark Howells-Mead ](https://profiles.wordpress.org/markhowellsmead/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/mhm-menu-separator/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/mhmli)