| 开发者 | sebastianpothe |
|---|---|
| 更新时间 | 2026年11月21日 04:18 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/motto-blocks directory, or install the plugin through the WordPress plugins screen directly.Motto Blocks requires WordPress 6.5 or higher and PHP 7.4 or higher.
Visit mottoblocks.com for product information and support channels.
Motto Blocks Pro is currently in development and is not publicly available yet. The free plugin is fully usable on its own. Follow mottoblocks.com for updates.
<style> rules now only apply to that SVG; rules aimed at the page (such as body or :root) are dropped._motto_* and similar).<svg> markup from content those users save, so the icon of Motto SVG, Button, List item, the Accordion indicator and the Slider arrows used to turn up blank. These blocks now save only the icon name and the server draws the icon when the page renders. Content saved by earlier versions keeps working.Post Content block placed inside the page itself, for example inside a Query Template.sizes value based on the slide width.motto:accordion:open, motto:accordion:close and motto:tabs:change. They fire on the element that changed and bubble up, they never cancel the default behavior, and they do not fire on page load.Motto Image and container background images now render a responsive srcset and sizes. The size picked in the editor is the largest one used.#, now also closes its submenu when you click it again in rollover mode. Before, the submenu stayed open while the pointer was over it. On touch screens the first tap opens the submenu and the next one closes it.#, now works as a submenu trigger. In click mode, clicking the link opens and closes the submenu like the chevron; in rollover mode it no longer jumps to the top of the page.motto.initSliders(scope) lets other scripts start sliders in markup added after the page loaded.isolation, which could affect stacking inside rounded blocks.u\72l(...)) or through image-set() and similar functions. SVG styles that contain a backslash are now dropped.<style>, <script>, <noscript> or hidden element that a plugin or theme places between blocks, no longer add an extra gap or swallow the gap before the next block in a flow layout.unfiltered_html capability (a contributor) could write a selector list such as a, body and restyle or hide the rest of the page.javascript: link on WordPress 6.5.0 to 6.5.4.&{BLOCK} token now work for contributors too, not only for administrators.motto-ui-, so they no longer collide with themes and other plugins. Classes on the frontend are unchanged.unfiltered_html capability could add page-wide CSS rules through them. Cached CSS is rebuilt once on each page's next visit.${POST_META:key@123}, @parent) only resolves if that post is viewable by the person looking at the page, so drafts, private posts and password-protected posts no longer leak. Protected meta keys (starting with an underscore) are refused when read from another post and keep working on the current one. New filters: motto_blocks_wildcard_source_post_viewable and motto_blocks_wildcard_allowed_protected_meta.nav_menu_item_title filter is now applied too.<figure> and supports an optional caption.data-slide-class.!important in the editor, Block Spacing controls refresh correctly when switching breakpoints, and the Styles panel code was reorganized.--motto-{block}-{property} naming (List, Button, Classic Menu, Tabs). The previous names, such as --bullet-size or --menu-gap, keep working in saved content and Custom CSS.motto_blocks_enqueue_scripts_for_content() and motto_blocks_enqueue_scripts_for_template_part() let themes and plugins load a block's frontend scripts when they render blocks outside the post content (the JavaScript counterpart of the Styler CSS helpers). Fixes Classic Menu submenus not opening on mobile in such setups.block.json so the WordPress.org Plugin Directory can index all blocks.