WP Theme Got soft rejection due to google font console issue

Hi, I got 17th Time soft rejection for my First WordPress Theme . It is with google font console issue. But I cannot understand it. Please, expert any Brother help me to recognize it. How I can fix this error?

Error screenshot: Console error: http://envato.d.pr/pf2vLp
Theme demo link:
http://srtheme.com/blogtst
http://impressivetheme.com/demo/invxtassy

I don’t see any error message

1 Like

Me too. So what should i do now? try to Convince?

Can you spot the issue in theme customizer? It looks like you are embedding font weights only, without specific font name somewhere in your theme.

Thanks,
Luca

Can you please share the code how you load the Google fonts?

1 Like

Sure. please, check my code.
https://pastebin.com/vmMtmwga

You can use this style, i think that its very easiest way :
/**

  • Enqueue google fonts.
    */
    function theme_fonts_url(){
    $fonts_url = ‘’;

    /* Translators: If there are characters in your language that are not

    • supported by Roboto, translate this to ‘off’. Do not translate
    • into your own language.
      */
      $roboto = _x( ‘on’, ‘Roboto font: on or off’, ‘theme’ );
      $raleway = _x( ‘on’, ‘Raleway font: on or off’, ‘theme’ );

    /* 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’ !== $roboto || ‘off’ !== $raleway ) {
    $font_families = array();

    if ( ‘off’ !== $roboto ) {
    $font_families[] = ‘Roboto :300,400,600,700’;
    }

    if ( ‘off’ !== $raleway ) {
    $font_families[] = ‘Raleway:300,400,600,700’;
    }

    $query_args = array(
    ‘family’ => urlencode( implode( ‘|’, $font_families ) ),
    ‘subset’ => urlencode( ‘latin,latin-ext’ ),
    );

    $fonts_url = add_query_arg( $query_args, ‘https://fonts.googleapis.com/css’ );
    }

    return esc_url_raw( $fonts_url );
    }