-
Notifications
You must be signed in to change notification settings - Fork 36
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
Typography (Customizer.php) #108
Comments
Hi Mark, The question seems simple, but the answer will be more complicated. In the first place you have done things well!! I think you should discriminate between different situations:
In the first situation you can't add your font(s) with LESS due to this requires recompile your LESS. Alternativly you recompile and bundle the compiled CSS with your theme and disable the LESS compiler. You have find a solution for this case by adding Your question about adding the font to the customizer when add it with LESS makes sense. Indeed and unfortunately it is not possible doing this with LESS direct.
You can add this to your functions.php After doing this you should have to add the Finally i used this:
With: assets/css/custom.php:
Note this will only add the The second situation which allow recompile after activation is more simple. add the code below to your functions.php will do the trick:
Note in both situation web font files (.woff, .eot) are add to |
NOTE c9b4d4d also change the built-in mixin
|
change the example built-in mixin see also: bassjobsen/jbst#108
question from @mjteves1986: My purpose of this is to make a childthemes. The user try to install my childtheme it will set to the right layout,setting or everything.
code
I was confuse if the new font family I include on the less will include on that $fontchoices. I think not possible. So that If we use the less compiler to include new font family, the font family will not include on that options on $fontchoices.
On my childtheme now, I create another $fontchoices called $childfontchoices and I include my new font on the " Array ". Here is my code sample to include my new font family in my $childfontchoices:
On my childtheme custom.css:
On my childtheme template-customizer.php:
On my functions.php:
Note: Im not include the other code that not include on my sample
The text was updated successfully, but these errors were encountered: