Tagged: 

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

    I followed the instructions from this topic https://kriesi.at/support/topic/new-custom-font/ and have the font showing up in the list in Enfold settings, however I do not see the different weight choices. How can I select those? Below is what I added as a test.

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Source Sans Pro'] = 'Source Sans Pro:400,600,800';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Source Sans Pro'] = 'Source Sans Pro:400,600,800';
    return $fonts;
    }
    #237929

    Hi!

    You’ll need to set that via CSS (Quick CSS), something like:

    body{
    font-family:'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight:800;
    }

    Best regards,
    Josue

    #313852

    I tried following the steps above but it doesn’t work on the latest enfold theme. I already put this code in my functions.php:

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

    And added this to custom CSS:

    font-weight: 900;

    but it doesn’t work. In fact when I do “view page source,” I still get this:

    <link rel='stylesheet' id='avia-google-webfont' href='//fonts.googleapis.com/css?family=Coustard|Droid+Sans' type='text/css' media='all'/> 
    <link rel='stylesheet' id='open-sans-css'  href='//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=3.9.2' type='text/css' media='all' />

    How do I fix this?

    #313854

    Hi!

    Did you select the font (Coustard) in the Theme Options either as the heading or content font?

    Regards,
    Josue

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