-
Notifications
You must be signed in to change notification settings - Fork 327
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
Adding variants for custom fonts in typography #1082
Comments
You can use the function add_my_custom_font( $standard_fonts ) {
$fonts['my_custom_font'] = array(
'label' => 'My Font'
'stack' => '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',
);
return $fonts;
}
add_filter( 'kirki/fonts/standard_fonts', 'add_my_custom_font' ); |
Would be great if we could also control Font Variants for custom fonts like this:
|
Can't seem to be able to add available variants for my custom font either... |
Fixed in 3.0 |
Hello @aristath , I used Kirki version 3.1.9 but font variants not working properly.
I have addd custom font okay but in Customize variants only show 4 variants: regular, itatlic, 700, 700italic. Could you check and fix it? Thanks in advanced. |
Issue description:
Right now "typography" font family list is returning all Google fonts but how can we add own fonts in list of font family?
Version used:
(Did you try using the develop branch from github? There's a chance your issue has already been adressed there)
Latest form w.org
Using theme_mods or options?
theme_mods
Code to reproduce the issue (config + field(s))
simply type "typography". i just want to add custom fonts in font family list.
The text was updated successfully, but these errors were encountered: