Define multiple Gutenberg editor widths
I'm trying to define multiple widths for the Gutenberg editor depending on the post/page template. I have a full-width page template and would like the editing experience to be as close to the live page.
Now the issue is that I can only seem to define one width for the editor using the .wp-block class. I'm following this method: https://wordpress.org/gutenberg/handbook/extensibility/theme-support/#changing-the-width-of-the-editor
.wp-block {
max-width: 720px;
}
I've tried adding a selector in front of the .wp-block class, for example:
.wp-block {
max-width: 720px;
}
.page-template-fullwidth .wp-block {
max-width:1080px;
}
But unfortunately that doesn't work. It seems like the only possible way to change the width is by only using .wp-block
Any ideas on how to implement multiple different editor widths?
Thank you!
Topic block-editor content-width editor Wordpress
Category Web