Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #350691

    Hi,

    I’m using the Open Sans in my site (http://www.homelink.fr/wp/en/) and the different weight don’t display correctly.
    Some examples:
    – in the slider, the rotating titles are supposed to be light (font-weight 300) and displayed rather like normal(400) or semi-bold (600)
    – under the slider, the white text in the blue and orange headband is also supposed to be light
    – under this headband, the title “French home exchange Trends” is supposed to be extra-bold (800)
    etc.
    Comparing to the Google examples (https://www.google.com/fonts/specimen/Open+Sans), there is nothing good.

    I’m also using the Thirsty font(http://www.fonts.com/font/yellow-design-studio/thirsty-script/regular/web-font) for 2 titles at the bottom of the page (“Press Area” and “Help/FAQ”) and it doesn’t display.

    When i first instal and setup the site, all these fonts were displaying normally. I don’t know exactly what and when this happen because I didn’t follow this site for months before I had to update all on it (wp, the plugins, Enfold).
    I tried to deactivate al the plugins and nothing change.
    Looking the css with Firebug, everything seems to be alright. But it’s not.

    Did you heard about this kind o problem? Any idea to help me?

    Best,

    David

    #351026

    Hi CAUM!

    Try deactivating all plugins and then send us a link and we’ll take a look. You can set your reply as private if you wish.

    Best regards,
    Elliott

    #351182
    This reply has been marked as private.
    #351577

    Hi!

    I checked all of those elements you listed and they have the correct font weight applied in your CSS. What browser are you using? Can you take a screenshot and highlight the differences?

    Cheers!
    Elliott

    #352337
    This reply has been marked as private.
    #352694

    Hi!

    Try adding this to your custom CSS.

    .template-page .entry-content-wrapper h1, .template-page .entry-content-wrapper h2 { letter-spacing: 0px !important; }
    

    And then do this, https://kriesi.at/support/topic/adding-cyrillic-subset-to-predefined-theme-google-font/, and make sure to add the “200” weight along with 400 and 600 for open sans.

    Cheers!
    Elliott

    #355140
    This reply has been marked as private.
    #355598

    Hi!

    It looks like Open Sans does not have a 200 weight but it does have 300. You can do a search for open sans here to see, http://www.google.com/fonts.

    Try this.

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

    If it’s still not working then send us a WordPress login and we’ll take a closer look.

    Cheers!
    Elliott

    • This reply was modified 10 years ago by Elliott.
    #356937
    This reply has been marked as private.
    #357231

    Hi!

    It’s not a bug. All we do is grab the fonts from google and display them. If you want to use the italic version then change my previous code to this.

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

    Or if you just want to use your code and don’t want to edit the header.php file then you can try adding this to the bottom of your functions.php file.

    add_action( 'wp_head', 'enfold_customization_addheaderscript' );
    function enfold_customization_addheaderscript() {
    echo "<link href=’http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,latin-ext’ rel=’stylesheet’ type=’text/css’>";
    }

    Best regards,
    Elliott

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