https://github.com/bigboxwc/wp-editor-page-template-class
Add the selected page template's class to the `.editor-styles-wrapper` <div>.
https://github.com/bigboxwc/wp-editor-page-template-class
Last synced: 11 days ago
JSON representation
Add the selected page template's class to the `.editor-styles-wrapper` <div>.
- Host: GitHub
- URL: https://github.com/bigboxwc/wp-editor-page-template-class
- Owner: bigboxwc
- License: gpl-3.0
- Created: 2019-01-18T23:27:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T05:25:12.000Z (over 2 years ago)
- Last Synced: 2025-03-26T19:02:54.722Z (4 months ago)
- Language: PHP
- Size: 975 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Editor Page Template Class
Add the selected page template's class to the `.editor-styles-wrapper` `
`.Example:
```css
body.page-template-narrow .wp-block {
max-width: 400px;
}
```This example assumes you have enqueued your CSS so the `body` selector is transformed to `.editor-styles-wrapper`.