Tagged: , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #26740

    Hi!

    I need to change the link under <!– google webfont font replacement –> in <head>:

    <link id=”google_webfont_1″ rel=”stylesheet” type=”text/css” href=”http://fonts.googleapis.com/css?family=Open+Sans:400,600&#8243; />

    to

    <link href=’http://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=latin,latin-ext&#8217; rel=’stylesheet’ type=’text/css’>

    Where can I do it? (Or -> I need to use Open Sans, 400,600,700 and latin-ext) Tried many solutions from this forum, but they did not work. My hardcode solution works pretty well (Chrome Developer mode – tried) but I do not know where to change this part of code…

    Best regards

    Daniel

    #131446
    #131447

    Hi,

    I have already tried that solution, it does not work.

    Check Ř, Š, etc. characters on http://aetherdesign.cz

    And there is still <!– google webfont font replacement –>

    <link id=”google_webfont_1″ rel=”stylesheet” type=”text/css” href=”http://fonts.googleapis.com/css?family=Open+Sans:400,600&#8243; /> in code.

    Also, with latest update, all the animations stopped working.

    #131448

    I noticed that you maybe need to add the code at the very top of functions.php. Replace

    <?php

    global $avia_config;

    with

    <?php

    global $avia_config;

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Open Sans'] = 'Open Sans:400,600&subset=latin-ext';
    return $fonts;
    }

    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Open Sans'] = 'Open Sans:400,600&subset=latin,latin-ext';
    return $fonts;
    }

    and it should work. Please don’t forget to save the theme options again.

    2) The animations don’t work because some files are missing on your server – please re-upload/re-install the theme. Chrome reports

    Failed to load resource: the server responded with a status of 404 (Not Found) http://aetherdesign.cz/wp-content/themes/enfold/js/prettyPhoto/css/prettyPhoto.css?ver=1
    Failed to load resource: the server responded with a status of 404 (Not Found) http://aetherdesign.cz/wp-content/themes/enfold/js/mediaelement/skin-1/mediaelementplayer.css?ver=1
    Failed to load resource: the server responded with a status of 404 (Not Found) http://aetherdesign.cz/wp-content/themes/enfold/js/mediaelement/mediaelement-and-player.min.js?ver=1
    Failed to load resource: the server responded with a status of 404 (Not Found) http://aetherdesign.cz/wp-content/themes/enfold/js/avia-compat.js?ver=1
    Failed to load resource: the server responded with a status of 404 (Not Found) http://aetherdesign.cz/wp-content/themes/enfold/js/avia.js?ver=1
    Failed to load resource: the server responded with a status of 404 (Not Found) http://aetherdesign.cz/wp-content/themes/enfold/js/shortcodes.js?ver=1
    Failed to load resource: the server responded with a status of 404 (Not Found) http://aetherdesign.cz/wp-content/themes/enfold/js/prettyPhoto/js/jquery.prettyPhoto.js?ver=3.1.5

    #131449

    Everything works perfect now!

    Manky thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Where to change google webfont font replacement?’ is closed to new replies.