Skip to content

Migrate classic sidebars and widgets to block for themers #216

@bph

Description

@bph

Discussed in #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: #42

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Published (Done)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions