Advanced Sidebar Menu

Descripción

Fully automatic sidebar menus.

Utiliza la relación padre/hijo de tus páginas o categorías para generar menús basados en la sección actual de tu sitio. Asigna una página o categoría a un padre y Advanced Sidebar Menu hará el resto por ti.

Keeps the menu clean and usable. Only related items display, so you don’t have to worry about keeping a custom menu up to date or displaying links to items that don’t belong.

Blocks are available to display menus where you need them. Look for the «Advanced Sidebar – Pages» block, or the «Advanced Sidebar – Categories» block. Widgets are also available for page builders or sites using classic widgets.

Características

  • Page and Category menu Gutenberg blocks.
  • Page and Category menu widgets.
  • Opción para mostrar o no la página o categoría principal de nivel más alto.
  • Opción para mostrar el menú cuando solo hay el elemento primario de nivel más alto.
  • Posibilidad de pedir páginas por (fecha, título, orden de página).
  • Excluya páginas o categorías introduciendo una lista separada por comas de identificadores.
  • Opción para mostrar siempre páginas o categorías secundarias.
  • Opción para seleccionar los niveles de páginas o categorías que se mostrarán cuando siempre se utilice el elemento secundario de visualización.
  • Opción para mostrar o no categorías en publicaciones individuales.
  • Ability to display each single post’s category in a new widget/block or in same list.

Page Menu Options

  • Display the highest level parent page.
  • Display menu when there is only the parent page.
  • Order pages by (date, title, page order).
  • Exclude pages.
  • Always display child Pages.
  • Levels of child pages to display when always display child pages is checked.

Category Menu Options

  • Display the highest level parent category.
  • Display menu when there is only the parent category.
  • Display categories on single posts.
  • Display each single post’s category in a new widget/block or in same list.
  • Exclude categories.
  • Always display child categories.
  • Levels of Categories to display when always display child categories is checked.

Included Language Translations

  • English (en_US).
  • French (fr_FR).
  • German (de_DE).
  • Spanish (es_ES).

Documentation

The official documentation for the plugin may be found here.

Desarrolladores

Developer docs may be found here.

Contribuir

Enviar solicitudes de extracción a través de GitHub Repo

Go PRO

Our PRO version brings additional functionality to this plugin. Check out the demo to see if the PRO version is useful for you.

  • Navigation menu widget.
  • Navigation menu Gutenberg block.
  • Posibilidad de personalizar el texto del enlace de cada página o elemento de menú de navegación.
  • Click-and-drag styling for page, category, and navigation menus.
  • Opciones de estilo para vínculos, incluidos el color, el color de fondo, el tamaño, el desplazamiento y el peso de fuente.
  • Opciones de estilo para diferentes niveles de enlaces.
  • Opciones de estilo para la página o categoría actual.
  • Opciones de estilo para el elemento primario de la página o categoría actual.
  • Opciones de estilo bloqueadas, incluidos los bordes, el ancho del borde y los colores del borde.
  • Opción para elegir entre 7 estilos de viñeta o sin viñetas.
  • Compatibilidad con menús de acordeón para páginas, categorías y menús de navegación.
  • Estilo de icono de acordeón y selección de color.
  • Opción de acordeón para mantener todas las secciones cerradas hasta que se haga clic.
  • Opción de acordeón para incluir el padre de nivel más alto en el acordeón.
  • Accordion option to use links for open/close.
  • Posibilidad de excluir una página de todos los menús mediante una simple casilla de verificación.
  • Link ordering for the category menus.
  • Número de niveles de páginas que se mostrarán cuando no esté marcada la opción «mostrar siempre las páginas secundarias».
  • Posibilidad de seleccionar y mostrar tipos de mensajes personalizados.
  • Posibilidad de seleccionar y mostrar taxonomías personalizadas.
  • Ability to display category post counts.
  • Exclude pages or categories using intuitive search and select. NEW
  • Opción para mostrar solo los padres, abuelos e hijos de la página actual.
  • Opción para mostrar los hermanos de la página secundaria cuando se encuentra en una página secundaria (con o sin nietos disponibles).
  • Ability to display the menu everywhere the widget area is used (including homepage if applicable).
  • Posibilidad de seleccionar la página/categoría principal de nivel más alto.
  • Posibilidad de seleccionar en qué niveles de categorías se mostrarán los mensajes asignados.
  • Posibilidad de mostrar publicaciones asignadas o tipos de mensajes personalizados en categorías o taxonomías.
  • Posibilidad de limitar el número de publicaciones o tipos de mensajes personalizados para mostrar en categorías.
  • Compatibilidad con menús de navegación personalizados desde Apariencia -> Menús.
  • Posibilidad de mostrar solo los padres y los hijos del elemento del menú de navegación actual.
  • Opción para mostrar los elementos del menú de navegación de nivel superior cuando no hay elementos secundarios o no ver un elemento de menú.
  • Soporte prioritario con acceso al área de soporte solo para miembros.

Capturas

  • Page widget options.
  • Category widget options.
  • Example of a page menu using the 2017 theme and default styles.
  • Example of a category menu ordered by title using the 2017 theme and default styles.

Bloques

Este plugin proporciona 2 bloques.

  • Advanced Sidebar - Pages Creates a menu of all the pages using the parent/child relationship
  • Advanced Sidebar - Categories Creates a menu of all the categories using the parent/child relationship

Instalación

Use the standard WordPress plugins search and install.

Instalación manual

  1. Upload the advanced-sidebar-menu folder to the /wp-content/plugins/ directory
  2. Activa el plugin a través del menú «Plugins» en WordPress
  3. Drag the «Advanced Sidebar – Pages» widget, or the «Advanced Sidebar – Categories» widget into a sidebar.
  4. Use the block inserter to insert the «Advanced Sidebar – Pages» block, or the «Advanced Sidebar – Categories» block into Gutenberg content.

FAQ

The menu won’t show up?

The menu in this plugin are smart enough to not show up on pages or categories where the only thing that would display is the title. While it may appear like the menu is broken, it is actually doing what it is intended to do.

The most common causes for this confusion come from one of these reasons:
1. The incorrect menu was selected. Categories have their own widget/block as pages have their own widget/block.
2. «Display the highest level parent page» or «Display the highest level parent category» is not checked.
3. The Pages menu is currently not being viewed on a page.
4. The Categories menu is not currently being view on a category.

¿Cómo cambio el estilo de la página actual?

You may add CSS to your theme’s style.css to change the way the menu looks.

For example the following CSS would:
1. Remove the dot to the left of the menu item.
2. Change the link color.
3. Add a background on hover.

.advanced-sidebar-menu li.current-menu-item a {
    color: black;
}
.advanced-sidebar-menu li.current-menu-item {
    list-style-type: none !important;
}
.advanced-sidebar-menu li.current-menu-item > a:hover {
    background: teal;
}

Para aplicar estilo a su menú sin usar ninguna actualización de código a PRO.

¿Cómo se consiguen las categorías para mostrar en las páginas de mensajes individuales?

The Categories Menu widget/block contains a «Display categories on single posts» checkbox, which will display the category menus based on the categories the current post is assigned to.

¿Cambia el menú para cada página en la que se encuentra?

Sí. En función de la página, entrada o categoría en la que estés, el menú cambiará automáticamente para mostrar los padres e hijos actuales.

Reseñas

15 de marzo de 2024 1 respuesta
The pro version of this plugin is a disaster. As soon as you activate it, it renders your menu items invisible. Also to get the full benefit of it you have to install the Classic Sidebar plugin as the block version is terrible.
20 de julio de 2023
I'd love to have a plugin like this but I can't make it work. Best I can do is make a list of categories, but I can't get it to list individual posts within a category. Tried everything. Nothing works. Not even sure if it's supposed to display individual posts in a category. There's no information in what might be laughlingly called 'Documentation'. I spent a large chunk of my day trying to make this thing work and it simply does not work.
30 de octubre de 2021
Advanced Sidebar Menus is a nice little plugin that does what it says it does right out of the box. All you have to do is place the correct widget (for page hierarchy OR post category hierarchy) in the right location. Good job!
Leer todas las 36 reseñas

Colaboradores y desarrolladores

«Advanced Sidebar Menu» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Advanced Sidebar Menu» está traducido en 8 idiomas. Gracias a los traductores por sus contribuciones.

Traduce «Advanced Sidebar Menu» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

9.5.0

  • Introduced is_truthy utility method.
  • Introduced get_post_type_label utility method.
  • Introduced is_empty utility method.
  • Introduced Menu interface and began promoting Menu_Abstract to it.
  • Introduced Utils_Interface to guarantee the existence of shared methods.
  • Included classic editor state in debug information.
  • Fixed the missing dashicons shown in the Preview component inside iframes.
  • Fixed PHPCS minimum_wp_version config.
  • Switched widget classes to trait/interface based structure.
  • Introduced full array shapes for widget settings.
  • Improved default widget settings.
  • Prevented conflicts with theme styles and widget fields.
  • Fixed excluding of child items if the top level parent is excluded.
  • Converted deprecated block registering args to WordPress 6.1 version.

9.4.3

  • Updated all block’s api version to 3.
  • Updated Node to version 20.
  • Updated Yarn to version 4.
  • Tested to WordPress Core 6.4.3.
  • Required PRO version 9.2.0+.

9.4.2

  • Fixed translation loading in blocks.
  • Improved CSS and JS linting.
  • Introduced ‘advanced-sidebar-menu/block-wrapper-attributes’ filter.
  • Fully support PHP 8.2.

9.4.1

  • Dropped support for PHP 7.0 in favor of 7.2.
  • Bumped minimum supported WordPress version to 6.0.0.
  • Improved block preview link handling.
  • Required PRO version 9.1.8+.

9.3.4

  • Passed block attributes and supports to JavaScript as well as PHP.
  • Fixed issues with block previews in WordPress 6.4.
  • Fixed issues with widget transformations in WordPress 6.4.
  • Improved styles of legacy widget’s info panel.
  • Updated PHPStan level to 8 and fixed all warnings.

9.3.3

  • Fixed issue with blocks loading in WordPress 6.4.
  • Tested to WordPress 6.4.1.

9.3.2

  • Fixed deployignore configurations.

9.3.1

  • Improved select input styles in widget settings.
  • Introduced ‘advanced-sidebar-menu/scripts/admin-scripts’ action.
  • Aligned supported browsers with WordPress core.
  • Updated the Node to version 18.
  • Fixed all ESLint and Stylelint notices.
  • Loosely a requirement for PRO version 9.3.0.

9.3.0

  • Modernized legacy widget JS and CSS into the Webpack structure.
  • Reduce bundle size of admin resources.
  • Renamed CSS files with the «advanced-sidebar-menu» prefix.
  • Added support for collapsing info panels on page builders and theme customizers.
  • Updated the block apiVersion to «3».
  • Tested to WordPress 6.3.2.
  • Greatly improved widgets styles in Beaver Builder and Elementor.

9.2.1

  • Introduced transform legacy widgets to blocks prompts.
  • Moved configurations to the root of the plugin and general modernization.
  • Made «Go PRO» callouts more tasteful and less intrusive.
  • Improved styles of the info panels in widgets and blocks.
  • Improved styles of buttons and fields in Beaver Builder.
  • Updated WP-PHPCS to version 3 and fixed all warnings.

9.1.0

  • Separated the exclude pages/categories field into a filterable component.
  • Updated links to various documentation.
  • Added default values to most block attributes.
  • Updated block attribute TS definitions to accurately reflect default values.
  • Updated TS to version 5.
  • Updated PHPCS scanning to version 3 of WP PHPCS standards.
  • Loosely update the minimum requirement for PRO to version 9.2.0.

9.0.11

  • Changed default limit of child pages to 200 instead of 100.
  • Simplified and improved the List_Pages::parse_args method.
  • Added links to documentation in the plugins list.
  • Tested to WordPress core 6.3.1.

9.0.10

  • Fixed compatibility with Jetpack widget visibility.
  • Included the screen and section information in ErrorBoundary data.
  • Improved static analysis testing.
  • Improved unit testing for WordPress 5.8.
  • Tested to WordPress core 6.3.0.

9.0.9

  • Fixed conflict with Stackable WordPress plugin in the theme customizer.
  • Improved block script reliability.
  • Improved handling of Elementor previews.
  • Improved error boundary informational messages.
  • Removed conflicts with POST method requests.

9.0.8

  • Disabled legacy widgets by default see docs.
  • Update browser list support.
  • Improved the widget/block transformation logic and types.
  • Removed dangling WordPress version < 5.6 requirements.
  • Tested to WordPress core 6.2.2.

9.0.7

  • Fixed data-level on category menus larger than 3 levels.
  • Included classic widgets flag in debug information.
  • Required PRO version 9.1.2+.

9.0.6

  • Improved extendability by removing all private access modifiers.
  • Fully support PHP 8.1.
  • Tested to WordPress Core 6.2.0.

9.0.5

  • Switched to static uses of class constants to improve extendability.
  • Switched to full namespaced constants.
  • Improved PHPCS definitions.
  • Improved translations.
  • Included help information for the category widget exclude settings.

9.0.4

  • Added «current-menu-ancestor» CSS class to Pages and Categories menus.
  • Introduced «advanced-sidebar-page» CSS class to Pages menus.
  • Tested to WordPress Core 6.1.1.

9.0.3

  • Fixed issue with styles not loading in Elementor.
  • Tested to WordPress Core 6.0.2.

9.0.2

  • Moved advanced-sidebar-menu CSS class to block widget wraps.
  • Introduced isScreen helper to make screen conditionals cleaner.
  • Included «Display each single post’s categories» option on the customizer screen.
  • Included PHP version in debug information.
  • Léame mejorado.

9.0.0

Full release notes.

  • Introduced Gutenberg blocks.
  • Improved translations.
  • Improved Elementor support.
  • Removed all deprecated functionality.
  • Required PRO version 9.0.0+.
  • Required WordPress Core 5.8.0+.
  • Drop support for PHP 5.6 if favor of PHP 7.0+.
  • Numerous bug fixes.