// Add New Fonts
function my_vcex_google_fonts_array( $array ) {
$array['My Custom Font Name'] = 'My Custom Font Name';
return $array;
}
add_filter( 'vcex_google_fonts_array', 'my_vcex_google_fonts_array' );
// Override all fonts
function my_vcex_google_fonts_array() {
return array(
'My Custom Font Name 1' => 'My Custom Font Name 1',
'My Custom Font Name 2' => 'My Custom Font Name 2',
'My Custom Font Name 3' => 'My Custom Font Name 3',
);
}
add_filter( 'vcex_google_fonts_array', 'my_vcex_google_fonts_array' );
Snippets: Add Fonts to The Total VC “Heading” Module
All PHP snippets should be added via a child theme's functions.php file.