Skip to content

Instantly share code, notes, and snippets.

@Garconis
Created September 27, 2017 17:19
Show Gist options
  • Save Garconis/60f5890a0fdc0bac9dafc037a628cb27 to your computer and use it in GitHub Desktop.
Save Garconis/60f5890a0fdc0bac9dafc037a628cb27 to your computer and use it in GitHub Desktop.
Divi | Add more font weights to existing Google Font options
<?php
// add more font weights
add_filter('et_builder_google_fonts', 'my_custom_google_fonts', 10);
function my_custom_google_fonts($google_fonts) {
$google_fonts['Montserrat']['styles'] = '300,300i,400,400i,600,600i,700,700i';
return $google_fonts;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment