In Wordpress's shiny new Twenty Twentythree theme, how can you assign a background color to the header or foother template parts?
Can this be done in a child theme - through theme.json
? Or somehow else?
The obvious approach of adding a css class to the child theme's styles.css
file, like, for example:
.ownclass {
background-color: crimson !important;
color: green !important;
}
And assigning it in Gutenberg under Advanced-> Additional CSS class(es)
to the header (or any other) block, doesn't have any effect. But even if this would work, assigning (hard coding?) the background color through theme.json
would be preferred over manually assigning it in Gutenberg.
Do you have any other ideas about how to set a template part's background color in a child theme?
You advise is very much appreciated. Thank you.