Created
September 19, 2016 02:07
-
-
Save andrastudio/cc2d7a3c8ca0cd405c89691fd04eeb11 to your computer and use it in GitHub Desktop.
Add new google fonts to Visual Composer Custom Heading
This file contains hidden or 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
if ( ! function_exists( 'helper_vc_fonts' ) ) { | |
function helper_vc_fonts( $fonts_list ) { | |
$poppins->font_family = 'Poppins'; | |
$poppins->font_types = '300 light regular:300:normal,400 regular:400:normal,500 bold regular:500:normal,600 bold regular:600:normal,700 bold regular:700:normal'; | |
$poppins->font_styles = 'regular'; | |
$poppins->font_family_description = esc_html_e( 'Select font family', 'helper' ); | |
$poppins->font_style_description = esc_html_e( 'Select font styling', 'helper' ); | |
$fonts_list[] = $poppins; | |
return $fonts_list; | |
} | |
} | |
add_filter('vc_google_fonts_get_fonts_filter', 'helper_vc_fonts'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great Help