Created
September 27, 2017 17:19
-
-
Save Garconis/60f5890a0fdc0bac9dafc037a628cb27 to your computer and use it in GitHub Desktop.
Divi | Add more font weights to existing Google Font options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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