You have to enqueue first the style editor css
function legit_block_editor_styles() {
wp_enqueue_style( 'legit-editor-styles', get_theme_file_uri( '/style-editor.css' ), false, '2.3', 'all' );}
add_action( 'enqueue_block_editor_assets', 'legit_block_editor_styles' );
Then you have to create that style-editor.css file inside your theme and then add this inside that file:
.wp-block {
max-width: 100%;}
Related Posts:
- How to remove specific panels in the editor (Gutenberg) when editing a block (via right panel)?
- How to Disable auto id attributes in Heading tag?
- Is there any simple way to remove Gutenberg editor H1 H5 H6 and change the label for the rest H2 H3 H4?
- How `window.wp.oldEditor` is being set in the editor?
- Notion-like editing and layout with a convenient freeform collaborative editor in WordPress? [closed]
- How to Batch Convert Gutenberg post to Classic post?
- Gutenberg dynamic block render_callback gives null for $post
- Layout Settings in the new Gutenberg editor
- How do I reinstate the “Add Block” feature that changes with the update?
- How can I reset/remove background colour from a block
- how to display gutenberg editor in a view
- How do I register multiple blocks with block.json and register_block_type_from_metadata?
- Allow excerpt for pages in Gutenberg?
- WordPress Gutenberg Embed Blocks Are Not Responsive
- How to query multiple post types inside Gutenberg options panel?
- Gutenberg moving core blocks between categories
- Reset data when the field is cleared
- Is there a hook or filter yet for Gutenberg Block Editor to not auto-add Noreferrer to links with a target?
- Is it possible to use to create a “switchable” preview of a Carousel Gutenberg block?
- What is the significance of ‘root’ in getEntityRecords?
- How to Disable Gutenberg & Return to the Classic WordPress Editor Without any Plugins
- Gutenberg default initial values for FocalPointPicker
- Define multiple Gutenberg editor widths
- Pre-set CSS class into custom block/template
- How to check whether Gutenberg editor is installed or not [duplicate]
- How to align a single Gutenberg block button in WP 5.5.3?
- Is it possible to print the output of a Gunteberg block with no classes?
- How can you reset InnerBlock content to base template?
- Gutenberg Multiple InnerBlocks
- How can we mimic the columns block in Gutenberg to instead be a list?
- How to set Gutenberg preferences programmatically with wp.data.dispatch?
- Dynamic Gutenburg block output echoes in WP Dashboard
- Are gutenberg blocks ideally supposed to look the same in both back-end and front-end?
- How to output child block attributes on a parent block
- Is there a better way to to make async API calls using the @wordpress/data module?
- How can I center Gutenberg buttons on mobile?
- Extend the “core/link” Block Format
- Passing settings from Reusable Block to it’s children
- Gutenberg element: How to usw Rangecontrol with two values to imitate a rangeslider?
- Deprecated for blocks.getSaveElement
- WordPress filter post content with PHP before editing it in Gutenberg
- Pass PHP vars to gutenberg sidebar
- Suggested image dimensions Gutenberg Hook
- How Add New Button to Gutenberg Editing Toolbar
- Update a block template and apply those changes to an existing post/page
- How do you manage the Gutenberg block previews in the admin area?
- Custom block save does not match due to stripped slashes from br tag and added figure tag around images
- How to disable align-wide for specified blocks in Gutenberg
- Deprecated function not working in Gutenberg
- Gutenberg Block checkbox check-unckeck does not work
- Gutenberg consume wp-json data and reflect in frontend the content
- WordPress npm run build and start only outputs wp-scripts start but does nothing
- Gutenberg : how can I get the title of the current block within its ‘edit’ function?
- Gutenberg – Remove add block button
- how can default_content filter tell if content will load in block editor or classic editor?
- Gutenberg programmatically move block to position
- Gutenberg somehow not loading in WP 5
- Image not aligning with text
- Custom validation on publish/ update in Block Editor
- WordPress Gutenberg – Open the “Block Pattern Explorer” programmatically
- Modify src attribute on image block
- Two text color palettes are appearing in Gutenberg
- WordPress Gutenberg – Sidebar get posts list based on selected category
- Gutenberg button removed on save if its empty
- Gutenberg: How to constrict floated table blocks to 1000px width in the front-end, when align wide & full are being used?
- Quasy – modal component does not hide itself
- Table block – Wrap table
- ResizableBox component is not selectable in block editor
- Gutenberg block previews suddenly not working
- WordPress Gutenberg Signal on Block Alignment Change
- When to use block patterns over nested blocks?
- How to convert block to a list block in WordPress gutenberg editor?
- How to do store, retrieve and write attributes in the registerFormatType method in Guttenberg?
- How to replace the Gutenberg default block with a custom block?
- how to disable a button added by a plugin in gutenberg toolbar?
- Images are not shown in the post editor
- Updating failed message when a wp_insert_post function is hooked to save_post hook
- Gutenberg work with Bootstrap Shortcodes plugin
- Prevent FormTokenField component to accept random entries
- How to move the customizations done in the Editor to my child theme?
- Unable to see the attributes for the custom block created
- How to display dynamic block editor on front-end?
- Enable varying text for Phone, Tablet and Desktop
- Debouncing Input value with block attributes
- Using the block theme in production
- When using the MediaPlaceholder component, will skipping blobUrl handling break something?
- Add another option to default link control settings panel?
- With full-site-editing menus, how do I create a non-linking top-level menu item with linking sub-pages
- How can I render a built-in Gutenberg block with InnerBlocks outside of the block editor?
- How do I add filters in Twenty-Twenty-Three without a functions.php?
- Different style options for the same block depending where it is used
- How to extract ‘intro’ block from page content, but later strip from page main content
- Add a new option to Social Link block
- Editing Inline fonts/typeface using the block editor
- What is the proper way of using React Hooks in Gutenberg on frontend?
- Customize margin between paragraphs using the Gutenberg Style editor
- How to add Gutenberg editor on frontend page?
- WordPress gutenberg block serverside rendering html elements not showing up
- Gutenberg: change block Components Popover properties
- Unable to register a block using block.json in Block Editor