Title: Classic Menu Block
Author: Jonny Harris
Published: <strong>28 de gener de 2022</strong>
Last modified: 24 d'abril de 2024

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

![](https://ps.w.org/classic-menu-block/assets/icon-256x256.png?rev=2668472)

# Classic Menu Block

 Per [Jonny Harris](https://profiles.wordpress.org/spacedmonkey/)

[Baixa](https://downloads.wordpress.org/plugin/classic-menu-block.0.1.7.zip)

 * [Detalls](https://ca.wordpress.org/plugins/classic-menu-block/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/classic-menu-block/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/classic-menu-block/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/classic-menu-block/#developers)

 [Suport](https://wordpress.org/support/plugin/classic-menu-block/)

## Descripció

Use classic menus in gutenberg, using this block. This block renders classic menu
data using wp_nav_menu function, improving backwards compatiblity.

## Captures

[⌊The navigation block \⌉⌊The navigation block \⌉[

The navigation block \

## Blocs

Aquesta extensió proporciona 1 bloc.

 *   Classic Menu Block A gutenberg block to use classic menus.

## Instal·lació

This section describes how to install the plugin and get it working.

 1. Upload the plugin files to the `/wp-content/plugins/classic-menu-block` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

## Ressenyes

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

### 󠀁[More documentation please](https://wordpress.org/support/topic/more-documentation-please/)󠁿

 [aldebaran57](https://profiles.wordpress.org/aldebaran57/) 4 de setembre de 2024

Great plugin for what it is – as a wrapper for the classic menu insert fn wp_nav_menu(),
and so to be able to insert a classic menu into a full block theme.  BUT  ….   The
documentation is totally absent for who this plugin is for, how you use it , whats
the prerequisites    .. So the plugin provides a block to insert a classic menu …
So I assume you can insert a classic menu into a website which is using a Block 
theme. But if I simply start with block theme 2024, install and activate the plugin,
then I don’t get in the Backend the menu item ‘Menus’  under Appearance  … so I 
cannot first setup/create a classic menu …. But then I realised if you  include 
the function register_nav_menus() in an action hook in the theme, then I get the
MI ‘Menus’  –  function register_my_menu() {    register_nav_menus();          }
add_action( ‘after_setup_theme’, ‘register_my_menu’ ); So now I can create a classic
menu in the Backend, insert a Classic Menu block  in a page and select a classic
menu for that  block insert. So for example, theme 2024 has no such register fn,
so I  added it to  a child theme    And then to the styling   ….   The plugin  comes
with some simple menu styling  – that’s  OK, at least its something  … But  if you
want to do  your own styling the Spacemonkey article mentions  a filter  .. but 
its not clear  what it’s for / how  you  use it  …   But after looking in the code
of the plugin  top file  classic-menu-block.php,  you  can use the filter  to change
the  params  which  in the plugin are then passed to the classic menu insert function
wp_nav_menu() .   So  I  used this to change the class name of the outer  wrapper
div of the inserted menu from the default to my own  …  as such I could remove the
default styling, and style the menu as I  want without the need for !important or
mega specificity.     So in conclusion it would be useful to simply add this info
in the diocumentation    ….  A comment on improving the default styling / adding
styling config  (there isn’t any config at the moment)  …  I don’t know how far 
this should go  … simply because there would be so many  possibilities  to  suite
each person’s needs so the whole thing becomes totally overweight  …   I think its
best as is  –  the simple current  styling – at least  it works for the  non-dev,
but  with the filter  a developer can do  their own styling.

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

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-10256/)󠁿

 [MattV](https://profiles.wordpress.org/mattv/) 20 de febrer de 2024

Exactly what I was looking for: a simple menu-block. Nothing more, nothing less.

 [ Llegiu totes les 2 ressenyes ](https://wordpress.org/support/plugin/classic-menu-block/reviews/)

## Col·laboradors i desenvolupadors

«Classic Menu Block» és programari de codi obert. La següent gent ha col·laborat
en aquesta extensió.

Col·laboradors

 *   [ Jonny Harris ](https://profiles.wordpress.org/spacedmonkey/)

“Classic Menu Block” s’ha traduït a 10 configuracions regionals. Gràcies als [traductors](https://translate.wordpress.org/projects/wp-plugins/classic-menu-block/contributors)
per les seves aportacions.

[Traduïu «Classic Menu Block» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/classic-menu-block)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/classic-menu-block/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/classic-menu-block/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/classic-menu-block/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/classic-menu-block/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versió **0.1.7**
 *  Darrera actualització **fa 2 anys**
 *  Instal·lacions actives **8.000+**
 *  Versió del WordPress ** 5.9 o posterior **
 *  Provada fins a **6.5.8**
 *  Versió del PHP ** 5.6 o posterior **
 *  Idiomes
 * [Catalan](https://ca.wordpress.org/plugins/classic-menu-block/), [Chinese (Taiwan)](https://tw.wordpress.org/plugins/classic-menu-block/),
   [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/classic-menu-block/), [English (US)](https://wordpress.org/plugins/classic-menu-block/),
   [French (France)](https://fr.wordpress.org/plugins/classic-menu-block/), [German](https://de.wordpress.org/plugins/classic-menu-block/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/classic-menu-block/), [Spanish (Colombia)](https://es-co.wordpress.org/plugins/classic-menu-block/),
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/classic-menu-block/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/classic-menu-block/), i [Spanish (Venezuela)](https://ve.wordpress.org/plugins/classic-menu-block/).
 *  [Traduïu a la vostra llengua](https://translate.wordpress.org/projects/wp-plugins/classic-menu-block)
 * Etiquetes
 * [block](https://ca.wordpress.org/plugins/tags/block/)[menu](https://ca.wordpress.org/plugins/tags/menu/)
   [navigation](https://ca.wordpress.org/plugins/tags/navigation/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/classic-menu-block/advanced/)

## Valoracions

 4.5 sobre 5 estrelles.

 *  [  1 valoració de 5 estrelles     ](https://wordpress.org/support/plugin/classic-menu-block/reviews/?filter=5)
 *  [  1 valoració de 4 estrelles     ](https://wordpress.org/support/plugin/classic-menu-block/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/classic-menu-block/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/classic-menu-block/reviews/?filter=2)
 *  [  0 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/classic-menu-block/reviews/?filter=1)

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

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/classic-menu-block/reviews/)

## Col·laboradors

 *   [ Jonny Harris ](https://profiles.wordpress.org/spacedmonkey/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/classic-menu-block/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](https://github.com/sponsors/spacedmonkey)