-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
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.