Snippets: Add New Google Fonts To The Typography Font List and Total VC Modules

The theme doesn't include every single Google font that exists because we don't update it dynamically, this is to keep your site fast and prevent it from having to connect to the Google API. We can add new fonts with updates but you can also add new ones like this.

// Add a custom font
add_filter( 'wpex_google_fonts_array', function( $array ) {
    $array[] = 'Rubik';
    return $array;
} );


// Override entire list to slim it down and show only the ones
// you want.
add_filter( 'wpex_google_fonts_array', function( $array ) {
    return array( 'Open Sans', 'Roboto', 'Lobster' );
} );
All PHP snippets should be added via a child theme's functions.php file.