Title: Add menu separators to navigation
Author: Mark Howells-Mead
Published: <strong>4 mai 2016</strong>
Last modified: 2 décembre 2025

---

Recherche d’extensions

![](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

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

[Télécharger](https://downloads.wordpress.org/plugin/mhm-menu-separator.zip)

 * [Détails](https://fr.wordpress.org/plugins/mhm-menu-separator/#description)
 * [Avis](https://fr.wordpress.org/plugins/mhm-menu-separator/#reviews)
 * [Développement](https://fr.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).

## Avis

![](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/) 24 février 2021 1 réponse

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/) 1 juillet 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/) 25 janvier 2017

Worked well right away. Thanks

 [ Lire les 3 avis ](https://wordpress.org/support/plugin/mhm-menu-separator/reviews/)

## Contributeurs/contributrices & développeurs/développeuses

« Add menu separators to navigation » est un logiciel libre. Les personnes suivantes
ont contribué à cette extension.

Contributeurs

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

“Add menu separators to navigation” a été traduit dans 1 locale. Remerciez [l’équipe de traduction](https://translate.wordpress.org/projects/wp-plugins/mhm-menu-separator/contributors)
pour ses contributions.

[Traduisez « Add menu separators to navigation » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/mhm-menu-separator)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/mhm-menu-separator/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/mhm-menu-separator/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/mhm-menu-separator/)
par [RSS](https://plugins.trac.wordpress.org/log/mhm-menu-separator/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

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

## Méta

 *  Version **2.1.3**
 *  Dernière mise à jour **il y a 11 mois**
 *  Installations actives **900+**
 *  Version de WordPress ** 5.0 ou plus **
 *  Testé jusqu’à **6.9.0**
 *  Version de PHP ** 5.6 ou plus **
 *  Langues
 * [English (US)](https://wordpress.org/plugins/mhm-menu-separator/) et [German (Switzerland)](https://de-ch.wordpress.org/plugins/mhm-menu-separator/).
 *  [Traduisez la dans votre langue](https://translate.wordpress.org/projects/wp-plugins/mhm-menu-separator)
 * Étiquettes
 * [menu](https://fr.wordpress.org/plugins/tags/menu/)[navigation](https://fr.wordpress.org/plugins/tags/navigation/)
   [sayhellogmbh](https://fr.wordpress.org/plugins/tags/sayhellogmbh/)[separator](https://fr.wordpress.org/plugins/tags/separator/)
   [wp_nav_menu](https://fr.wordpress.org/plugins/tags/wp_nav_menu/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/mhm-menu-separator/advanced/)

## Évaluations

 5 sur 5 étoiles.

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

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

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

## Contributeurs

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

## Support

Quelque chose à dire ? Besoin d’aide ?

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

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](https://www.paypal.me/mhmli)