Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #699086

    hi enfold-team, i want to use the Source Sans pro an have done this:

    /*
     * new font in the enfold font-menue: https://kriesi.at/support/topic/new-custom-font/#post-121900
     */
    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Source Sans Pro'] = 'Source Sans Pro:200,300,600,900';
    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:200,300,600,900';
    return $fonts;
    }

    Selected is:
    – Heading font: Source Serif Pro
    – Defines the Font for your body text”: Source Sans Pro

    Now the menue has no bold style anymore and the p-text is very, very thin.
    When i try to give them a weight of 600 (via Browser-Style or css), the text is reacting only very minimal.

    How can i control the font-weight?

    #699088

    Hey sandra-schwaiger!

    You can add a custom CSS for the p, so you can select the Weight of the font
    Example:

    p { font-weight: 300; }

    let us know if we can do anything else for you, we will be happy to help

    Best regards,
    Basilis

    #699094

    hi basilis, i added this in my childtheme and tried it also to simulate this as inline-style with my browser: the font is getting only e very little bit darker , but does not change his weight.

    please take a look to my website (in the Private Data FIeld) – thanks!

    #700165

    Hi Basilis, is my question less accurate or not relevant?

    #700184

    hi basilis, i have found a workaround.

    #700195

    Hey!

    Happy you could solve it.
    Feel free to let us know if we can help you with any other way.

    Thansk a lot

    Regards,
    Basilis

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