You may use the following code (either in your active theme’s functions.php
file or in a custom plugin):
// This line is preferably be added to your theme's functions.php file
// with other add_theme_support() function calls.
add_theme_support( 'disable-layout-styles' );
// These two lines will probably not be necessary eventually
remove_filter( 'render_block', 'wp_render_layout_support_flag', 10, 2 );
remove_filter( 'render_block', 'gutenberg_render_layout_support_flag', 10, 2 );
The above code should remove the classes like is-layout-flex
, is-layout-flow
etc.
Caution: These are added for good reasons. So, unless you absolutely have to remove these, I’d suggest you to go through the following links before making the final decision:
Related Posts:
- get_template_part vs action hooks in themes
- How to remove the Theme Customization Button from the dashboard and themes options page?
- Edit srcset and sizes attributes in Gutenberg image, cover and gallery – blocks
- Getting instance variable in scope of ‘wp_enqueue_scripts’
- Display a different theme for not logged-in users
- How do I Make a Theme “plugin-ready”?
- What’s the difference between hooks, filters and actions? [duplicate]
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- Get password when user registers and save it sha1 into database
- Passing variable in hooks and filter
- Highlight “Show all” item in wp_list_categories
- Menu item added in wp_nav_menu_items filter is never highlighted
- Pass variable to hook. Its possible?
- What is the “correct” way to add hooks or similar PHP behavior to a blocktheme?
- WordPress taxonomy and archive custom class
- How to wrap all titles generated by Gutenberg “Heading” block with tag
- How to change footer credit text in Twenty Twenty One theme with a hook?
- Modify available templates (in dropdown)
- Add content after get_header
- WordPress wp_get_current_user returning blank values until refresh
- what is do_action(); in wordpress? [duplicate]
- Suppress the_content filter in a nested loop
- Add text when displying attribute with a hook on single product page
- What are the hooks in WordPress theme development?
- Detect when gutenberg editor title is available in Dom after editor load
- Gutenberg Block – Post Featured Image Filter Hook
- How can I output all apply_filters and do_action?
- How to get all queries’s results after they have executed?
- Override the WordPress core function wp_referer_field
- Replace single_template filter with what for default posts?
- save_post action doesn’t passing post id to my function as argument
- Set default value for “Additional CSS class(es)” for specific block types
- Unique design inside a specific category’s url
- How to rotate every letter in a title
- What does WordPress do if I save a post without content/title? [duplicate]
- remove_action not removing add_action from constructor
- Overide enqueue in non plugable function via child theme
- How to disable thumbnail filter for a specific template part or image size?
- CSS class on last post in loop ( custom query )
- Hook add_attachment error
- Call to undefined function is_home() or any conditional tags
- How to add InnerBlock multiple times in the same block
- Moving post title down the page / Removing a block from a post
- HTML block gutenberg templates
- Use a filter on menu items that have children
- Remove actions/filters that are set with create_function()
- Gutenberg theme development: how to add “headers” option under styles > colors > elements?
- Get The Caller (Plugin / Theme / Core) For All actions & Hook in WordPress
- Difference between “comment_form_default_fields” AND “comment_form_fields”
- Remove tags without a specific meta key from “choose from the most used tags”
- How to find list of all functions bind to a particular hook from my plugin?
- Is There A WordPress Hook for Accessing Attachments for A Particular Page?
- How to access page variable inside action hook
- Insert Content Before div#main from the functions.php File
- What is the action hook to use if you want to capture the new password during password change?
- tiny_mce_before_init: ‘exact’ => true has no effect
- pre_get_comments or the_content filter
- Use has_filter on comment_post
- How can I edit comment meta value before it is saved?
- Never actually adding the action? Or do I have to call the action?
- Display taxonomy with a maximum number of letters
- How to conditionally add a wp_filter
- Filter didn’t work on content class (hybrid_post_attributes)
- How to hook into action/filter call
- How to set default values for edit_post_link() in my theme?
- Action hook to control access to certain parts of my site
- What filter or action hook to use in order to load some code before the template begins printing in BuddyPress? [closed]
- Tiny MCE custom styles, and preview in the backend
- content filter (add_filter) for category description?
- How to make a function occurs for one time?
- Change default rel attributes for Image Block & Button Block
- Related Post Category Filter
- Pagination don’t work with active filters
- Display custom product option in admin order details
- Replace Data In Post & Update Meta Field Post Is Saved
- How to register dynamic settings in WordPress Customizer?
- How to update mark-up of a gallery block in a custom theme?
- apply_filters() and call_user_func() to define and call a function outside a class
- Auto focus RichText field
- How to create nested array attribute
- Show popover with url and option to open in new window
- How to Modify WP_Includes/blocks/latest_posts.php
- How to render block editor in wp-admin custom pages programmatically
- style_loader_tag not changing stylesheet to preload
- restrain filter on get_the_excerpt to queried item in stead of current post
- Social-Link block not loading html on page with custom theme
- How to diagnose wp-env environment problem
- Unpublished Pages Failing To Appear On Custom Path
- Attribute form NumberControl doesn’t update when I update page before it lose its focus
- Hook to change the site URL
- WP Gutenberg custom block – generate theme colors from SASS and use them in the inspector and php callback
- Posts Page shows Classic Editor interface not Gutenberg
- Save_post – Warning: Cannot modify header information
- How Do I Unhook This Parent Theme Function?
- Hook to add content after date in post?
- How can I include custom Gutenberg Blocks in a theme?
- Use action, filter, or hook to append HTML to WordPress plugin function
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- Put CSS Content inside tag for WordPress
- Is there a way to add classes to a page when using a Gutenberg reusable block as page layout?