Viewing 4 posts - 1 through 4 (of 4 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

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

You must be logged in to reply to this topic.