Google font missing

Hello,
I would like to add a missing google font to the list (Bai Jamjuree), i followed this thread :

This is the code i added :

 function bai_jamjuree ($fonts) {
 $fonts[ 'baijamjuree' ] =  array(
      'source'  => 'google',
      'family'  => 'Bai Jamjuree',
      'stack'   => '"Bai Jamjuree", sans-serif',
      'weights' => array( '200', '200italic', '300', '300italic', '400', '400italic', '500', '500italic', '600', '600italic', '700', '700italic' )
    ) ;

 return $fonts;
}

But i can’t see the font, what’s wrong ?

Hi There @Lyser

Thanks for writing in! I have checked this with my colleague. The referenced method is not going to work anymore, because of the implementation is now different. These font lists will be updated in a future release of X/Pro, but we cannot provide any ETA.

So the temporary solution is to add the font import call into your X -> Theme Options -> CSS area.

@import url('https://fonts.googleapis.com/css?family=Bai+Jamjuree:200,200i,400');

And then you can assign the font into your own CSS classes and use within your element.

Hope that helps.

Perfect, i want to thx all of you themeco dudes and dudettes, always finding solutions to problems i’ve encountered, you’re doing a great job.
Thx again !

Hey @Lyser,

You’re welcome. I’ve also added this to our issue tracker to make our development team know of this case.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.