-
Notifications
You must be signed in to change notification settings - Fork 329
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
Google font output broken in 3.0.8 #1443
Comments
What exactly is missing? |
hey @aristath - if you look at the 2 url strings I posted you can see the difference. In 3.0.8 the font weight "600" is missing - and you can see the "%2Clatin-ext" is being repeated many times. |
Do you have the 600 font-weight selected in the customizer for that font? |
@aristath yes - and as soon as I switch back to 2.3.8 it works just fine. |
I just tested using your control and this is what I'm getting: <link rel='stylesheet' id='kirki_google_fonts-css' href='https://fonts.googleapis.com/css?family=Nunito+Sans%3A600&subset=latin-ext' type='text/css' media='all' /> The URL is https://fonts.googleapis.com/css?family=Nunito+Sans%3A600&subset=latin-ext which looks perfectly fine to me. |
@aristath - we're definitely seeing very different results :/
I would expect output similar to what you reported and what I see with 2.3.8 - but with 3.0.8 I see this:
So The Nunito Sans weight should be 600 - not regular Any ideas? |
With further testing - I can see the default font value is being set in the Customizer as "400" rather than "600" - this is on a brand new WP install with your fork of _s using the code above and before I save make any changes in the customizer (i.e. the default values). If I then change to 600 and save it loads the correct font weight - so the issue seems to be related to the loading of the default font values (which is definitely not an issue in 2.3.8) |
Can you please try this on a plain _s theme (not my fork)? |
@aristath - yip - issue persists.
6.) Switch to Kirki 2.3.8
So in summary, the correct font weight is not being set in 3.0.8 by default. If you need anything else let me know. Thanks, |
ok, I see the problem now. The issue is that one field uses I just pushed a commit that will add compatibility and allow you to use |
@aristath - excellent - thanks! |
Issue description:
There are font weights missing in the Google Font url being called in 3.0.8.
Example:
In 2.3.8 the Google font url rendered in source is:
In 3.0.8 the url is
Version used:
3.0.8
Using theme_mods or options?
Code to reproduce the issue (config + field(s))
The text was updated successfully, but these errors were encountered: