Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #241276

    Hi,
    worked with all the topics on fonts. Maybe You can tell me what is wrong with that one in function.php

    add_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;
    }

    #241497

    Hi 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,
    Ismael

    #241589

    Hi,

    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,
    Alex

    #241591

    here is the link:

    nonpardon.com

    #241613

    Im 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,
    Alex

    #241688

    it 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Cyrillic font problem’ is closed to new replies.