• Skip to main content

StudioPress

Customer Portal

  • Genesis Pro
  • Blocks
  • Custom Blocks
  • Framework
  • Themes
  • Hosting
  • Agencies
  • Login
Get Help / Code Snippets / Block Editor /

Enable Block-Based Widget Editor

Unless otherwise indicated, the code snippet you see below should be placed into your child theme’s functions.php file.

WordPress 5.8 introduces a new block-based widget editor to the Widgets screen (Appearance > Widgets) andĀ CustomizerĀ (Appearance > Customize > Widgets). This new editor allows users to add blocks (instead of widgets) to widget areas using the familiar block editor interface introduced in WordPress 5.0.

To maintain the best site editing experience, the new widget screen has been disabled in the Genesis Framework (version 3.3.4).

If you are using WordPress 5.8+ and you’d like to enable the block-based widget editor for your Genesis Framework-powered site, you can add the following code to your child theme’s functions.php file:

Note: If you’re using an older XHTML child theme with Genesis 2.10.1 and want to disable the block-based widget editor, add the above code snippet to your child theme’s functions.php file and change the return value from true to false.

Ready to get started? Create a site or shop for themes.

Explore Genesis ProductsGenesis + Hosting

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Genesis Pro
  • Blocks
  • Custom Blocks
  • Framework
  • Themes
  • Hosting
  • Agencies
Company
  • Brand Assets
  • Terms of Service
  • Acceptable Use Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Developer Documentation
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble