| 开发者 | domainsupport |
|---|---|
| 更新时间 | 2026年8月14日 21:28 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
sidemenu_block_content_id filter.
Classic theme and classic SideMenu support
Classic SideMenu features are still available when your site uses a classic theme, or when the plugin detects existing classic SideMenu usage. This keeps existing shortcodes, widget sidebars, menu locations, mobile menu hijacks and Customizer settings working while giving block themes a cleaner setup path.
On classic themes, SideMenu loads the original Customizer-driven runtime. This provides the traditional SideMenu sidebar, menu location, shortcode, mobile menu hijack options and classic styling controls.
If you move an older site to a block theme, SideMenu checks for existing classic usage and keeps the classic runtime available when it finds classic SideMenu blocks, shortcodes, open links, widgets, menu locations or mobile menu hijack settings.
How to use the [sidemenu] shortcode
Classic shortcode support is still available when the classic runtime is active.
[sidemenu] to show the default button.[sidemenu]My Button Title[/sidemenu] or [sidemenu title="My Button Title"] to show your own button text.[sidemenu class="my-class" title="Filtered SideMenu Button"] to show a button that only displays classic widgets or menu items with the specified class.open_sidemenu class:
<a href="#" class="open_sidemenu">Example Link</a>
To use an anchor link, set the link URL to #open_sidemenu.
For classic filtered content, add a dash and the class name to the anchor. For example, #open_sidemenu-testclass opens SideMenu and shows classic content marked with the testclass class.
Supported mobile menu hijacks
SideMenu can hijack the existing mobile menu button in a range of themes, including:
For block themes, reusable SideMenu content is managed under "SideMenus" in the WordPress admin. The default SideMenu content can be chosen from the editor's SideMenu settings panel. For classic themes and existing classic SideMenu usage, settings are available in "Customizer - SideMenu".
On block themes, SideMenu only loads the classic Customizer settings when a classic trigger is detected. Add and save a classic SideMenu block, shortcode or open_sidemenu trigger in published content, an active widget area or an assigned classic navigation menu, or enable the mobile menu hijack setting if your site still needs the classic runtime.
Classic SideMenu buttons can filter widget and menu content by class. The free SideMenu block uses one default SideMenu content item.
Yes. Widget sidebar and menu location support remain available through the classic runtime.