Tagged: Fonts, google fonts
Hello!
I’ve use your child theme to customize google fonts, becouse I have cyrilic site, and standart fonts looking horryble.
I used that article:
http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
After making changes to my functions.php I can pick new google fonts in Theme Settings, but after I push Save All button – all changes reset to deafult. Why?
Hey!
I had no problems saving the new font options in the backend, the change are not being reflected on the frontend and i believe that’s because of the caching plugin you have activated.
To add cyrillic subset use this function:
function add_subset_func($fontlist) {
$fontlist .= "&subset=cyrillic,cyrillic-ext";
return $fontlist;
}
add_filter('avf_google_fontlist', 'add_subset_func');
Best regards,
Josue
I’ve disabled w3 Total Chache.
But no change.
I try to use Oranienbaum for headings and Roboto Condensed for text. Chache is off, but nothing happence – still arial on a site,
And thanks for add_subset_func – you probably should add it to wiki, for all non english customers ;)
Hi!
It’s fixed now, the problem was caused by this code you had in child theme functions.php:
function vc_remove_wp_ver_css_js( $src ) {
if ( strpos( $src, 'ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'vc_remove_wp_ver_css_js', 9999 );
add_filter( 'script_loader_src', 'vc_remove_wp_ver_css_js', 9999 );
It’s commented now.
Regards,
Josue