Welcome! To use this support forum, please Login or Join Today!

   

Additional fonts to the customizer

{name}
Rank

Total Posts: 3

Joined 2016-02-22

PM

 

Hello,

Is there a way to add additional fonts to the customizer? In this case, a google font.

Thanks.

{name}
Rank

Total Posts: 3

Joined 2016-02-22

PM

 

I found this article in your support forum: https://gist.github.com/simplethemes/5779136 However, it is not clear if this would replace the whole font stack with new fonts, or just add to the existing font stack. Could you clarify? Thanks.

{name}
Rank

Total Posts: 3

Joined 2016-02-22

PM

 

Found a solution:

-Create a child theme lightfast-child
-Copy lightfast/customizer.php to lightfast-child/
-Add the desired google font to array ‘$available_fonts’. In my case, added: ‘Raleway’ => ‘Raleway’, in lightfast-child/customizer.php
-Include the following lines in lightfast-child/functions.php: include(  get_stylesheet_directory().’/customizer.php’ ) ;

Ready

Hope it helps someone.