WordPress / developer-blog-content

In this GitHub space, WordPress team coordinate content to be published on the Developer Blog. Discussion and montly meetings (first Thu) in WP Slack #core-dev-blog
36 stars 2 forks source link

Migrate classic sidebars and widgets to block for themers #216

Open bph opened 5 months ago

bph commented 5 months ago

Discussed in https://github.com/WordPress/developer-blog-content/discussions/206

Originally posted by **justintadlock** January 12, 2024 We could use a good general guide that covers sidebars and widgets. Widgets are a feature that both themes and plugins created during the classic era. However, blocks are more plugin territory. My focus for this article would be on looking at this from a themer's viewpoint: - Dynamic sidebars (i.e., widget areas) should be replaced with template parts, patterns, etc. No more registration; anything can go anywhere in block templates! - Moving a custom widget to a block. I'm thinking of this more in broad strokes (every widget has different options and different uses). This discussion was branched off an earlier one that is specific to plugins and more broad in scope: https://github.com/WordPress/developer-blog-content/discussions/42