The Advanced Sidebar Menu plugin includes three Gutenberg blocks which may be used in any WordPress area which supports blocks. They may be found by searching by name or functionality and added like any other block.
- Advanced Sidebar – Pages.
- Advanced Sidebar – Categories.
- Advanced Sidebar – Navigation (PRO version only).
The majority of the block settings are found in the Settings Sidebar. If the sidebar is not showing, you may click the gear icon in the main toolbar or use the 3-dot menu to select, “Show more settings.”
Block style options are found in the block toolbar by clicking the button.
While the label and available options may vary slightly from the widgets, the functionality is the same. The widget documentation may be used to reference blocks and their options.
Widgets Verses Blocks
Searching for a block on the widgets screen will give you two results. One for the block and one for the widget.
A quick way to tell them apart is by the icon. The block uses the icon.
While both the widgets and the blocks function nearly the same, the options for the menu are laid out differently and in some cases have different labels. Unless your theme has specific requirements to use widgets, it is recommended to use blocks over widgets.
Note: The legacy widgets will be removed from the block inserter in the near future so it is best to get used to using blocks now.
Transform widgets to blocks
Existing widgets may be transformed by clicking the icon in the toolbar and selecting the block under, “TRANSFORMS TO.”
All widget settings will automatically transfer over to the block and existing functionality will remain intact.
Once you transform your widgets to blocks, you may wish to remove the widgets from the inserter to assure you always add blocks and not widgets. You may remove legacy widgets from the inserter by adding the following filter to your active theme’s functions.php file.
No Preview Available
When first adding a block or changing a block’s options, you might be shown a placeholder which looks something like this.
This can mean a few things based on the area you are adding the block to.
When using a block via the widgets screen, the block will show up on multiple locations of the site, each with their own menu. The block is unable to reasonably predict what the menu will look like so you’ll most likely see the placeholder. The placeholder does not mean the block won’t show up in your sidebar, just that a preview is not available. A good place to test how a block will look in your sidebar is to use the theme customizer on the page you are testing.
Post or Page Content
When using a block within post content, the preview is able to calculate the exact contents of the menu on this particular post. The style of the menu may be slightly different depending on your theme’s styles and if they are included in editor. If you are seeing the placeholder, the block is not going to show on the post with the current options. You may test different block options until you find a combination which displays. A good place to start is, “Display menu on every page.”
When adding blocks to templates created via the Site Editor (FSE), the block will show up on multiple locations of the site, each with their own menu. The block is unable to reasonably predict what the menu will look like so you’ll most likely see the placeholder. The placeholder does not mean the block won’t show in your template, just that a preview is not available. The only way to see what the finished block will look like is to save the template and view the area of your site using the template.