-
AuthorPosts
-
March 21, 2014 at 5:47 pm #241276
Hi,
worked with all the topics on fonts. Maybe You can tell me what is wrong with that one in function.phpadd_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[Oranienbaum] = ‘Oranienbaum&subset=latin,cyrillic’;
$fonts[‘Oranienbaum’] = ‘Oranienbaum&subset=latin,cyrillic’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Roboto+Condensed’] = ‘Roboto+Condensed:700,400,300&subset=latin,cyrillic’;
$fonts[‘Roboto+Condensed’] = ‘Roboto+Condensed:700,400,300&subset=latin,cyrillic’;
return $fonts;
}March 22, 2014 at 3:39 am #241497Hi Finlando!
Please use this instead: I’m not sure why you have duplicated variables for the same font:
add_filter('avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Oranienbaum'] = 'Oranienbaum&subset=latin,cyrillic'; return $fonts; } add_filter('avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Roboto Condensed'] = 'Roboto Condensed:700,400,300&subset=latin,cyrillic'; return $fonts; }
Best regards,
IsmaelMarch 22, 2014 at 1:06 pm #241589Hi,
i got trouble with changing the font family generally. How can I run Oranienbaum Cyrillic, Latin on all of the headlines and Roboto Condensed Cyrillic, Latin in the content (text)
Cant get Oranienbaum in the main menu too.
Sorry for the for the inconvenience,
AlexMarch 22, 2014 at 1:08 pm #241591here is the link:
nonpardon.com
March 22, 2014 at 3:03 pm #241613Im using the following in functions.php:
add_filter(‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Oranienbaum’] = ‘Oranienbaum&subset=latin,cyrillic’;
return $fonts;
}add_filter(‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Roboto Condensed’] = ‘Roboto Condensed:700,400,300&subset=latin,cyrillic’;
return $fonts;
}I can switch all the heading fonts in the general styling list… oranienbaum is there, but cant see it on the website.
body text with roboto condensed is fine now.
Thanks a lot,
AlexMarch 23, 2014 at 12:33 am #241688it works with this one
add_filter(‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Oranienbaum’] = ‘Oranienbaum’;
return $fonts;
}add_filter(‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Oranienbaum’] = ‘Oranienbaum’;
return $fonts;
}Thank You,
Alex -
AuthorPosts
- The topic ‘Cyrillic font problem’ is closed to new replies.