If you want to be able to define Google fonts in your theme but not have the actual fonts loaded…
The typography options in the Total theme are all saved as arrays as WordPress "theme mods" these can be easily…
This code will remove the standard font options from any theme typography setting such as those located in the Customizer…
function myprefix_add_new_standard_fonts( $array ) { $array[] = 'Century Gothicfunction myprefix_add, CenturyGothic, AppleGothic, sans-serif'; return $array; } add_filter( 'wpex_standard_fonts_array', 'myprefix_add_new_standard_fonts' );
This is a very advanced modification for experienced developers. Make sure to change everywhere it says 'iconset_name' to the name…
The following snippet can be used to remove all the Google Font options from the Customizer to slim things down.…
// Add custom font to font settings // This is for NON-Google Fonts // For google fonts see here: http://total.wpexplorer.com/docs/snippets/add-new-google-fonts/…
// Remove all Google font options from the Customizer // Typography settings but keep them for Total VC modules function…
/** * Alter the font-weights to be loaded with your selected Google Fonts * as defined at Customizer > Typography…
Using a filter you can define which Google Fonts are available when selecting fonts in the Customizer or in theme…
Deprecated in Total 5.0 This functionality was deprecated in Total 5.0 because it caused more harm then good such as…
add_filter( 'wpex_disable_google_services', '__return_true' );
The following snippet can be used to add custom Google Font Family options to or completely override the font family…
The following snippet can be used to add extra Google Font options or override the entire list of available Google…
/** * Add Custom Font To TinyMCE Editor * Will not load the font family in the backend, to do…