Skip to content

No way to target specific sidebar in widgets editor #33370

@desrosj

Description

@desrosj

What problem does this address?

There's currently no way for a theme developer to target a specific sidebar to provide different CSS within the new widgets editor. This makes it near impossible to match the previews seen in the widget editor with the front end experience.

Use case: A theme with a sidebar displayed differently than the content area. At the most extreme level, this happens with different background colors. Two default themes that contain sidebars with different background colors are Twenty Twenty and Twenty Thirteen.

What is your proposed solution?

Short term, it would be great to have an ID or class matching the sidebar's ID so that theme developers could provide and target the appropriate CSS selectors.

Longer term, allowing a theme.json file to contain specific color, type, and behavior settings on a per-sidebar basis would be amazing.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions