Created
June 22, 2022 01:22
-
-
Save robertbiswas/8b1ac4696ddfcd2830a3fe6b9edb8686 to your computer and use it in GitHub Desktop.
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
/** | |
* Add Font Group | |
*/ | |
add_filter( 'elementor/fonts/groups', function( $font_groups ) { | |
$font_groups['rb_custom_fonts'] = __( 'RB Custom Fonts' ); | |
return $font_groups; | |
} ); | |
/** | |
* Add Group Fonts | |
*/ | |
add_filter( 'elementor/fonts/additional_fonts', function( $additional_fonts ) { | |
// Key/value | |
//Font name/font group | |
$additional_fonts['CustomFontName1'] = 'rb_custom_fonts'; | |
$additional_fonts['CustomFontName2'] = 'rb_custom_fonts'; | |
return $additional_fonts; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment