Home › Forums › WoodMart support forum › Remove woodmart font › Reply To: Remove woodmart font
November 14, 2019 at 7:29 am
#156858
Eric Watson
Participant
Hello,
You can use this function
public function get_icons_font_css() {
$output = '';
$url = woodmart_remove_https( WOODMART_THEME_DIR );
$font_display = woodmart_get_opt( 'icons_font_display' );
if ( ! woodmart_get_opt( 'disable_font_awesome_theme_css' ) ) {
$prefix = '';
if ( woodmart_get_opt( 'light_font_awesome_version' ) ) {
$prefix = '-light';
}
// FontAwesome
$output .= '@font-face {
font-family: "FontAwesome";
src: url("' . $url . '/fonts/fontawesome-webfont' . $prefix . '.eot?v=4.7.0");
src: url("' . $url . '/fonts/fontawesome-webfont' . $prefix . '.eot?#iefix&v=4.7.0") format("embedded-opentype"),
url("' . $url . '/fonts/fontawesome-webfont' . $prefix . '.woff2?v=4.7.0") format("woff2"),
url("' . $url . '/fonts/fontawesome-webfont' . $prefix . '.woff?v=4.7.0") format("woff"),
url("' . $url . '/fonts/fontawesome-webfont' . $prefix . '.ttf?v=4.7.0") format("truetype"),
url("' . $url . '/fonts/fontawesome-webfont' . $prefix . '.svg?v=4.7.0#fontawesomeregular") format("svg");
font-weight: normal;
font-style: normal;';
if ( 'disable' !== $font_display ) {
$output .= 'font-display:' . $font_display . ';';
}
$output .= '}';
}
return $output;
}
Kind Regards
XTemos Studio