Home › Forums › Support › Gutenberg code editor supper narrow This topic has 3 replies, 2 voices, and was last updated 5 years, 1 month ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts March 11, 2019 at 1:26 am #835191 Paul See screenshot here: https://www.screencast.com/t/tFvsvzEAP This is really annoying when working with long articles, as I have to scroll like a madman and I can only have a small part of the article in view at once. I read this about changing the width: https://wordpress.org/gutenberg/handbook/designers-developers/developers/themes/theme-support/#changing-the-width-of-the-editor But I don’t see a style-editor.css file in GP. Anyway, how can I set the code editor to a workable length? March 11, 2019 at 9:37 am #835780 TomLead Developer Lead Developer Hi there, Try adding this function to your site: add_action( 'enqueue_block_editor_assets', function() { wp_add_inline_style( 'generate-block-editor-styles', 'body .edit-post-text-editor {max-width: 800px;}' ); } ); Adding PHP: https://docs.generatepress.com/article/adding-php/ Let me know if that helps or not ๐ March 14, 2019 at 7:50 am #838894 Paul Thanks Tom, unfortunately I had to switch back to the classic editor, because I had the Gutenberg failing to update posts bug for some of my posts. That’s why I’m late to reply, because frankly I haven’t tried if it works yet. I will keep it handy in the back of my mind though, for when I do eventually switch over to Gutenberg. Thanks March 14, 2019 at 8:48 am #838947 TomLead Developer Lead Developer Sounds good ๐ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In