Viewing 9 replies - 1 through 9 (of 9 total)
  • It means that the url https://fonts.googleapis.com/css you are referencing in your main page is not available. Mostlikely some arguments like here https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,700,600,300

    are missing. You should be able to fix this by tweaking your theme file.

    Thread Starter uniguardgps

    (@uniguardgps)

    Hello Saravanan,thanks for your help. I know what is missing or wrong by comparing the right web with my own web..but I just do not know how to edit it, or where to edit..This is my first time to use wp..

    You can edit the files using the built in theme editor. Just navigate to Dashboard>Appearance> Editor. Select the appropriate file/files and you can edit them.

    Thread Starter uniguardgps

    (@uniguardgps)

    Hello Saravanan,thanks for your quick answer and help. I will try to do it..

    I am having the same problem, but I do not know where the source code is…

    The error I see in chrome is:
    Request URL:https://fonts.googleapis.com/css?family=Gabriola&ver=4.1.1
    Request Method:GET
    Status Code:400 Bad Request

    And it’s true! I’ve found that if I put that url into the browser, I get an error, but if I change Gabriola to Gabriela, then it works. So somewhere, someone created a typo…

    According to the sources tab of the chrome developer tool, the problematic line is in the (index) and the exact line is:
    <<strong>link</strong> rel='stylesheet' id='google-font-css' href='https://fonts.googleapis.com/css?family=Gabriola&ver=4.1.1' type='text/css' media='all' />

    But the problem is that I don’t know where the source of that is coming from… I’ve grep’d the entire directory structure for “Gabriola” and the only place it shows up is in various _index files in the wp-content/cache/page_enhanced/<site_name>/ and …/*/ dirs.

    But I suspect that these cache files are subject to be reconstructed with the theme files, I don’t think I can really modify those…

    There are however several references to googleapis in some of my theme “hooks” dirs, but no where is there a reference to “Gabriola”.

    So where the heck is the source of this word so I can fix it? Could it be in the database somewhere?

    Any suggestions would be welcome…

    Well, in the Twenty Twelve theme, the functions.php file loads the fonts:

    function twentytwelve_get_font_url() {
    	$font_url = '';
    
    	/* translators: If there are characters in your language that are not supported
    	 * by Open Sans, translate this to 'off'. Do not translate into your own language.
    	 */
    	if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
    		$subsets = 'latin,latin-ext';
    
    		/* translators: To add an additional Open Sans character subset specific to your language,
    		 * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
    		 */
    		$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
    
    		if ( 'cyrillic' == $subset )
    			$subsets .= ',cyrillic,cyrillic-ext';
    		elseif ( 'greek' == $subset )
    			$subsets .= ',greek,greek-ext';
    		elseif ( 'vietnamese' == $subset )
    			$subsets .= ',vietnamese';
    
    		$protocol = is_ssl() ? 'https' : 'http';
    		$query_args = array(
    			'family' => 'Open+Sans:400italic,700italic,400,700',
    			'subset' => $subsets,
    		);
    		$font_url = add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" );
    	}
    
    	return $font_url;
    }

    So, I suspect other themes are similar.

    Thanks, but I don’t see any references to Gabriola there. I am using a free theme from GoDaddy called Cleanio, developed by CyberChimps that is not well supported by them, and that complicates the code a little. I’ll try posting the same question on the limited forum that CyberChimps has to offer and post a response here if I get an answer.

    Of course not, Twenty Twelve doesn’t use Gabriola font. I was just giving an example of where it might be in that font. But, you really do need to ask the developers and/or other users of that theme.

    Also, just another update, I searched for Gabriola in the wp-options database table, which is really the only place I’d expect it to be in the database, and I didn’t find it there either…

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘GET https://fonts.googleapis.com/css 400 (Bad Request)’ is closed to new replies.