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

    Sorry if I am able to find this information somewhere, but I would need to add the Light (300) and Extrabold (800) versions of the Google font, too. Even the Condensed versions, if possible. Where can I add this without it being overwritten when updating the template, please?

    #120587

    You can use following code – add it zo the bottom of functions.php:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['PT Sans'] = 'PT Sans:300,400,800';
    return $fonts;
    }

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

    Enfold will automatically load the right stylesheet for you. Replace PT Sans with your font family.

    #120588

    Your suggestion didn’t seem to work for me, but I used a different workaround. I added the following code to the <head> of header.php:

    <style type=”text/css”>

    @import “http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,800,700,300&#8221;;

    @import “http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300&#8221;;

    </style>

    <!–[if lt IE 9]>

    <style type=”text/css”>

    @font-face {font-family: ‘Open Sans Extrabold’; src: url(‘http://www.transics.com/Fontface/OpenSans-ExtraBold.eot&#8217;); font-style: normal;}

    @font-face {font-family: ‘Open Sans Light’; src: url(‘http://www.transics.com/Fontface/OpenSans-Light.eot&#8217;); font-style: normal;}

    h1, h3 {font-family:”Open Sans Extrabold”;}

    h2 {font-family:’Open Sans Light’;}

    #menu-item-search {background: url(http://www.transics.com/images/template/Search_trigger02_A.gif) no-repeat center; text-indent: -9999px;}

    </style>

    <![endif]–>

    This seems to solve the problem, but do let me know if there are probs with this.

    Thanks anyway, Dude.

    #120589

    Hey!

    No, this shouldn’t cause any issues.

    Regards,

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add a larger Google font’ is closed to new replies.