Advanced Customizations

Below you’ll find advanced customizations that aren’t included in theme settings. These customizations can either be added to a child theme functions.php file or by using the plugin Code Snippets. If you’d like to add a function using Code Snippets:

  1. Install and active the plugin, Code Snippets.
  2. Go to SnippetsImport.
  3. Import the function provided in the form of a JSON file. A JSON file is provided with each function below. Right click and Save As to download.

Disable Google Fonts

The following filter allows you to choose the Google Fonts you’d like to use in the Ultra Customizer settings but self-host the font families. Ultra will output the necessary styles but won’t import the font from Google.

function ultra_child_setup() {
	siteorigin_webfonts_remove_font( 'Muli' );
	siteorigin_webfonts_remove_font( 'Lato' );
  	add_filter( 'ultra_import_google_fonts', '__return_false' );
add_action( 'after_setup_theme', 'ultra_child_setup', 30 );

Code Snippets Import File
Disable Google Fonts Snippet

Last updated: 20/02/2020