Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #385121

    Hi how do I insert the condensed version of robot for my menu items?

    Under advanced styling there is no condensed versions of roboto ?

    #385703
    #387456

    Hi I sort of understand. This is the sample code

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
    $fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
    return $fonts;
    }

    But how do I substitute the above for Roboto Condensed ?

    #388143

    Hi!

    Replace the code with this:

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

    You can now select the Roboto Condensed font on the Theme Options > Font panel.

    Best regards,
    Ismael

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