Releases: Ya19880104/ys-editor-scope-wrapper
Releases · Ya19880104/ys-editor-scope-wrapper
Release list
Auto-detect candidate classes + i18n (English source + zh_TW)
First public release.
Highlights
- Auto-detect candidate scope classes from your existing posts
- GreenShift Style Manager
dynamicGClasses[0](root wrapper) - First selector inside
wp:html <style>blocks - WordPress core
alignfull/alignwide
- GreenShift Style Manager
- Checkbox UI to enable/disable detected classes — no manual typing needed
- Custom textarea for classes the scanner missed (advanced)
- i18n: English source strings +
lang/ys-editor-scope-wrapper-zh_TW.po - PRG (Post-Redirect-Get) pattern for save handler — single notice, refresh-safe
- save_post hook auto-clears detection transient so newly added classes show up
Install
- Download `ys-editor-scope-wrapper.zip` below
- WordPress admin → Plugins → Add New → Upload Plugin → choose the zip
- Activate
- Settings → YS Editor Scope to configure
Use case
When your page CSS is written as `.scope-class .xxx { ... }` (common with GreenShift / GL Page Builder), the frontend page builder injects `.scope-class` on the outer wrapper, but the Block Editor doesn't replicate that — so all wrapper-scoped CSS becomes dead in the editor preview. This plugin closes that gap.
Requirements
- WordPress 6.0+
- PHP 7.4+
License
GPL-2.0-or-later