Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #890016

    Hello! I try use font thickness for body Open Sans font. In theme options I select Light thicknes for tag “p”. Then add this in Child function.php

    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
        $fonts['Open Sans'] = 'Open Sans:300,400,600';
        return $fonts;
    }

    But in result not included thicknes 300 Result string -> <link rel=’stylesheet’ id=’avia-google-webfont’ href=’//fonts.googleapis.com/css?family=Tenor+Sans%7COpen+Sans:400,600’ type=’text/css’ media=’all’/>
    How to add thickness 300?

    #890199

    Hey EagleMax,

    In the code above you have Open Sans and in the link Tenor Sans, so maybe in the function, it should also be Tenor Sans?

    Best regards,
    Victoria

    • This reply was modified 7 years, 7 months ago by Victoria.
    #890217

    Hi, Victoria,
    I want add thicknes 300 for Open Sans

    #890540

    Hi EagleMax,

    Best regards,
    Victoria

    #890579

    In first message I wrote this ;)
    See – http://img.webmister.pro/2017-12-19_182541.png

    #890804

    Hi EagleMax,

    Yes, but your content p is set to have Arial font in another tab, so don’t expect to have Opens Sans there.

    Best regards,
    Victoria

    #890944

    Thanks for help!

    • This reply was modified 7 years, 7 months ago by EagleMax.
    #891081

    Hi,

    Glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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