Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #197174

    Hello,
    I’d like to add the google font Oxygen for default Heading Font & body text. How can I do this? Thank you!

    #197248

    Hey!

    See Peter’s response here:
    https://kriesi.at/support/topic/adding-google-fonts-3/#post-175612

    Regards,
    Josue

    #198696

    Thanks, I tried to add the below code to my functions.php but I don’t see it in the list of fonts to pick from still. Any ideas? Did I miss something? Thanks!

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Open Sans’] = ‘Open Sans:400&subset=latin,latin-ext’;
    $fonts[‘Oxygen’] = ‘Oxygen:400&subset=latin,latin-ext’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘Open Sans’] = ‘Open Sans:400&subset=latin,latin-ext’;
    $fonts[‘Oxygen’] = ‘Oxygen:400&subset=latin,latin-ext’;
    return $fonts;
    }

    #198935

    Hey!

    I’m not sure why the filter is not working but you can still add the font. Edit includes > admin > register-admin-options.php then find this code on line 289:

    'Yellowtail'=>'Yellowtail',

    Below, add this code:

    'Oxygen'=>'Oxygen:400&subset=latin,latin-ext'

    Again, find this code on line 321:

    'Lora'=>'Lora',

    Below, add this code:

    'Oxygen'=>'Oxygen:400&subset=latin,latin-ext'

    Remove browser cache then reload the dashboard.

    Best regards,
    Ismael

    #199650

    thanks, that did the trick!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘add google font’ is closed to new replies.