Skip to content

Typography

Richard Coffee edited this page Sep 10, 2018 · 5 revisions

To load a font in Fluidity, put this in the (child's) functions.php:

TCC_Theme_Typography::load_google_font( 'font_name_goes_here' );

As an example, to load Raleway, use this:

TCC_Theme_Typography::load_google_font( 'Raleway' );

This will enqueue the font in wordpress, and thus inject the necessary html to retrieve the font in accordance to the standards laid out by https://fonts.google.com

Multiple fonts can be loaded in this manner. Just add a separate call for each font you want to load. All the fonts will then be retrieved from google in a single request.

After that you can use the font in the css file in a normal fashion.

Clone this wiki locally