Custom fonts not applied after theme update
-
Hi,
we are using two custom fonts on the site (Chapaza and Louis George Cafe).
After updating the theme to the latest version, font styles are not applied for some text elements (see screenshots attached).
Any idea how to fix this?
Thanks in advance,
Robert
Attachments:
You must be
logged in to view attached files.
Hello,
Please, provide your site admin access to the private area.
Please confirm the permit for us to deactivate the plugins not related to the theme and switch to the parent theme for the while of checking what may take up to 15 minutes. Please make the full backup of your site.
Best Regards
I have made a backup of the site. You can deactivate plugins and switch to the parent theme.
Hello,
It seems to be a bug in our theme. In order to fix it, you need to edit the file “woodmart/inc/classes/Themesettingscss.php” and replace the following code
private function get_all_css( $preset_id = '' ) {
$options = Options::get_instance();
$css_parser = CSSParser::get_instance();
$options->load_defaults();
$options->load_options();
$options->load_presets( $preset_id );
$options->override_options_from_meta();
$options->setup_globals();
$css_index = $css_parser->ParseCSS( $options->get_css_output() );
$css = $css_parser->GetCSS( $css_index );
$css .= $this->get_theme_settings_css();
$css .= $this->get_icons_font_css();
$css .= $this->get_custom_fonts_css();
$css .= $this->get_custom_css();
return apply_filters( 'woodmart_get_all_theme_settings_css', $css );
}
with this one
private function get_all_css( $preset_id = '' ) {
$options = Options::get_instance();
$options->load_defaults();
$options->load_options();
$options->load_presets( $preset_id );
$options->override_options_from_meta();
$options->setup_globals();
$css = $options->get_css_output();
$css .= $this->get_theme_settings_css();
$css .= $this->get_icons_font_css();
$css .= $this->get_custom_fonts_css();
$css .= $this->get_custom_css();
return apply_filters( 'woodmart_get_all_theme_settings_css', $css );
}
Please save the theme settins.
Kind Regards
Very cool, thank you 🙂
Custom fonts are working now.
You are welcome! We will fix in in the nearest update. If you have any questions please feel free to contact us.
Best Regards
The topic ‘Custom fonts not applied after theme update’ is closed to new replies.