• I’m adding google web fonts like this in functions.php and all i get is https://fonts.googleapis.com/css GET error in console.

    I’m using this method for quite some time and it always worked, but not any more.

    Does anybody knows where the problem is?

    I can see this occurring only in Chrome.

    Code:

    function css_js() {
        if ((!is_admin()) && (!is_login_page())) {
    
    wp_enqueue_style( 'source-sans', 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,900,700,600,400italic,300italic,300&subset=latin,latin-ext' );
    
    }
    add_action('init', 'css_js');
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Google web fonts not showing (Chrome)’ is closed to new replies.