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
Global Styles: Heading and base fonts switched #43904
Comments
|
I want to work on this! |
|
I picked up on this in 3117893-zen while on a Quick Start Support session with a user. The user was using the Redhill theme at the time, and you can see the issue in action here. |
|
Just got another report of this from a user in 26017946-hc where they reported this behavior, but I observed that changing the Heading font changed the font for the whole site |
That's intentional 👍
@scruffian hi! is this a theme bug? |
|
I'll add it to the list... |
|
From what I can tell this is a theme issue and seems to be specific to Redhill. (Contrary to the notes in the description testing with Brompton show that the header/base fonts follow the settings in the Style Editor.) So far Redhill is the only theme that I have noticed this issue in, however I have thus far only evaluated some of the Varia child themes. (Varia itself is also not experiencing the issue.) This is not recent breakage, the Redhill theme appears to have inverted the header/base fonts since the initial commit of the theme which is the inverse of other child themes. (That heading style is referenced as an example; There are many other spots where the primary/secondary variable usage was swip-swapped). There are a couple of ways this might be addressed, but all of them would invert [all,most] of the element's current font selections (things using a header font would switch to a base, things using the base font would switch to header). Which would address the ask of the issue. However it would also suddenly invert the font selections of all sites using the Redhill theme that are leveraging that Global Style editor. |
|
One potential option for a fix might be: Automattic/themes#3123 |
|
@simison what are your thoughts on this fix? The concern is that this will switch things for existing users... |
|
Oh, that's a bummer! We shouldn't do that, at least without communicating with customers first. Are there any technical solutions to fix this and avoid changing it to existing customers who applied fonts on that theme? cc @ianstewart |
|
I guess we could run a script to update all of the fonts for users of this theme manually... 😭 |
|
Yeah, we have some scripts to do that already. It's less scary than it sounds. :-) I agree that's probably the best, considering that adding any conditionals in code would need to be maintained ad-infinitum anyway, so it's better to do more work to get it sorted all at once. |
|
Ok, can I let y'all handle this? You have the PR for when you need it.. |
|
@scruffian Hi! I didn't notice your question earlier, thanks for patience. Did you mean that .com teams would do the migration? I think it goes a bit more into theme-integration aspects of work so I'd expect it from you all. |
|
The portion of the theme that needs to change is (I believe) covered by the PR noted above. It and the inversion of existing header/body selections for Redhill should be brought in together, but I'm afraid I have no idea how the inversion portion would be done. @simison you mentioned above that you have some scripts to do that part already. Will you be able to help us out with that? |
|
Gotcha! Yeah so I just meant that there are heaps of scripts for this kind of tasks on wpcom at |
|
Ok I've added it to the board. @jeffikus I'll let you prioritize this one :) |
|
The Redhill theme was retired in June 2021 and there haven't been user complaints since (on this issue at least) so I'm going to close this. |
|
Support References This comment is automatically generated. Please do not edit it.
|
Steps to reproduce
What I expected
For the selected fonts to be applied to the title and content respectively.
What happened instead
The base font gets applied to the post title, and the heading font gets applied to the paragraphs.
Screenshot / Video
Context / Source
Discovered while checking something unrelated in helping the user in https://wordpress.com/forums/topic/varia-theme/
The text was updated successfully, but these errors were encountered: