Version 9.2 of the Advanced Sidebar Menu plugin is now available and ready for general use.
This release introduced search and select for excluded menu items.
Search and Select Excluding
Previously, if you wanted to exclude a page or category from a single menu, you had to:
- Locate the id of the page or category.
- Enter the id into a text field within the block settings.
- Try to remember what item the id corresponds to.
Not anymore! We’ve rebuilt the exclude UX from the ground up to bring you a slick and intuitive UX which you’ll appreciate.
The original text field has been replaced with a new component which looks like this.
Simply start typing and the box will fill with available items to exclude. Click to exclude, click again to remove the exclusion. That’s it! Couldn’t be simpler.
We’ve add a new dedicated documentation page for dealing with menu exclusions.
Filterable Component
A new advanced-sidebar-menu.blocks.exclude-field
JS filter was introduced to allow overriding the component used for the exclude menu items field in the blocks. This filter is used by the PRO version to remove the basic version’s exclude field. It may also be used by developers to replace the field with any component you like.
Supporting Older WordPress Versions
The exclude field uses the WordPress REST search endpoint behind the scene to populate the excludable items. Some more advanced query parameters were introduced in WordPress version 6.2. Because the Advanced Sidebar Menu plugin supports WordPress version 5.8 or above we’ve introduced a temporary shim to handle the requests. With the shim in place, the search feature is fully supported on versions prior to 6.2.
To our developers: The shim is marked pretty well that it is not to be used outside this plugin. If you would like to use it elsewhere, please copy/paste and update the namespace for your own purposes.
Accordion Icon Hover Colors
From the beginning you have always been able to select the color used for displaying accordion icons. Now you may also select the color used for accordion icons when a user hovers over them.
Both blocks and widgets now have a color selector which may be found within the accordion section of the widget or block settings.
The color is smart enough to only affect devices which support hovering. This way you won’t end up with strange hover/active states when users are on touch devices.
Miscellaneous
- Added default values to most block attributes and updated types to accurately reflect attributes with defaults.
- Improved inline documentation and links.
- Added documentation links in the plugins list.
- Updated Stylelint to version 2.
- Updated ESLint to version 3.
- Update TypeScript to version 5.
- Tested to WordPress Core version 6.3.1.
- Introduced new JS tests for even more reliability.