Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T05:25:12.000Z (about 2 years ago)
- Last Synced: 2024-05-27T19:10:05.850Z (8 months ago)
- Language: PHP
- Size: 975 KB
- Stars: 5
- Watchers: 3
- 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`.