You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}
add_filter( 'csf_field_typography_customwebfonts', 'my_custom_font_family' );
}by this code only can add font family and every text between $fonts[] show for name of font and value. how to change this to have option that can specify display name of font in font selector dropdown and specify value of font family use like this?:$fonts['Ubuntu Font'] => $fonts['Ubuntu'] = array( 'normal' );`
Show Ubuntu Font in dropdown and use value for preview section and output.
Sorry for bad english
The text was updated successfully, but these errors were encountered:
in typography field have some options to select font and can add font family by use this code:
`if( ! function_exists( 'my_custom_font_family' ) ) {
function my_custom_font_family( $fonts ) {
}
add_filter( 'csf_field_typography_customwebfonts', 'my_custom_font_family' );
}
by this code only can add font family and every text between $fonts[] show for name of font and value. how to change this to have option that can specify display name of font in font selector dropdown and specify value of font family use like this?:
$fonts['Ubuntu Font'] => $fonts['Ubuntu'] = array( 'normal' );`Show Ubuntu Font in dropdown and use value for preview section and output.
Sorry for bad english
The text was updated successfully, but these errors were encountered: