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

    Hi All,

    I need to add a new google font to drop down menus in Incarnation Theme Options. What code and in which file shall I add?

    regards,

    #241897

    Hi!

    First make sure you have the latest version of Incarnation, then replace the content of /includes/admin/register-admin-options.php by this.

    Finally, simply add a code like this in functions.php (after line 15):

    add_filter('avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts) {
    $fonts['Montserrat'] = 'Montserrat:400,700';
    return $fonts;
    }
    
    add_filter('avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Montserrat'] = 'Montserrat:700';
    return $fonts;
    }
    

    Change as needed.

    Cheers!
    Josue

    #242214

    Hi Josue,

    I am sorry but I cannot read your reply because it is marked as private? Can you please advise how can I read it?

    regards,

    #242221

    Hey!

    I set it to “public”.

    Cheers!
    Peter

    #297243

    many thanks for your support on that on.
    This thread can be now closed

    regards,
    P

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Add new google custom font’ is closed to new replies.