Skip to content

Add the selected page template's class to the `.editor-styles-wrapper` <div>.

License

Notifications You must be signed in to change notification settings

bigboxwc/wp-editor-page-template-class

Repository files navigation

Editor Page Template Class

Add the selected page template's class to the .editor-styles-wrapper <div>.

Example:

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.

About

Add the selected page template's class to the `.editor-styles-wrapper` <div>.

Resources

License

Stars

Watchers

Forks

Packages

No packages published