Upgrade Guide
Migration from Theme Extensions v1 to v2 (mmenu.js v8 to v9)
Breaking Change
Theme Extensions v2 upgrades the Menu extension from mmenu-js v8 to v9. This is a breaking change and requires manual updates in projects using the Menu extension.
If you're upgrading from an older version:
- Update property names: Use
optionsinstead ofargs, andconfigurationsinstead ofconfigs(legacy names still work) - Update data attributes: Use
data-mmenu-optionsinstead ofdata-mmenu-args - Import new SCSS: Use
@import 'wly-statamic-theme-extensions/scss/mmenu.scss'; - Update offcanvas config: The offcanvas configuration structure has changed in v9
- Review CSS variables: mmenu-js v9 uses CSS variables for theming