-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set default alignments in theme.json #44007
Comments
Duplicate of #30761 ? |
I meant left/right/center alignments. |
Yes, this was a seriously stupid decision. I spend more time now trying to figure out how to hack Wordpress because they keep locking you out of setting up different alignments for different screen sizes |
What problem does this address?
In block themes, when alignments are set in the block markup itself, there is no way to change this alignment using style variations.
Example:
Because
"textAlign":"center"
andhas-text-align-center
is in the markup, it can not be changed by adding a style variation.If the
textAlign: "center"
was in theme.json, then blue.json could set it totextAlign: "none"
or similar.What is your proposed solution?
Allow setting default alignments for blocks using theme.json. Then alignments that are consistent with the default, can be removed from the HTML files in block themes.
The text was updated successfully, but these errors were encountered: