Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #718185

    Hi there,

    I’d like to change my headings to the Google Font – ‘Ubuntu’.

    I’ve followed this thread:

    And used this code in the functions.php file:

    <?php

    /*
    * **** Functions file
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */
    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Ubuntu Regular 400’] = ‘Ubuntu Regular:400’;
    $fonts[‘Ubuntu Bold 700’] = ‘Ubuntu Bold:700’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘Google fonts’][‘Ubuntu Regular 400’] = ‘Ubuntu Regular:400’;
    $fonts[‘Google fonts’][‘Ubuntu Bold 700’] = ‘Ubuntu Bold:700’;
    return $fonts;
    }

    But it is defaulting to some other font like Arial. Could you please let me know what I’m doing wrong?

    Thanks!

    #719021

    Hey Robyone925,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.