-
codysmith
I have a brand new install that I can’t get the “Editor Width” in any Element to work as before. See this screenshot:
https://share.cleanshot.com/ykpMQ4Yf
The width stays at 100% of the block editor no matter what I put here.
I’ve included access to an InstaWP site I spun up for testing this in the Private Information area — I also tested locally and have the same issue.
Any ideas?
-
Hi there,
I can replicate the issue on my end; it seems like a bug.
Thanks for reporting it to us.
For now, you can use this code to manually set a max-width for GP element’s editor. I’ve set max-width to 500px, you can change it to fit your needs.
add_filter( 'block_editor_settings_all', function( $editor_settings ) { $css = 'body.block-editor-iframe__body.post-type-gp_elements { max-width: 500px; margin-inline: auto;}'; $editor_settings['styles'][] = array( 'css' => $css ); return $editor_settings; } );
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.