support@gracethemes.com

[Eaterstop-pro] Some load errors

Home Support EaterStop WordPress Theme [Eaterstop-pro] Some load errors

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  Grace Themes 1 year, 7 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2134

    Leon Sennomo
    Participant

    Hi, My client was having some difficulty changing the title font on the slider using the

    Appearance -> Theme options -> Basic settings -> Font faces -> Select font for Slide title setting.

    It appears that most of the fonts listed in the drop down were missing, because the font style didn’t change. I looked in the browser console to see if there were any problems and noticed some issues. Perhaps it has something to do with the problem(?)

    Load errors on startup. Output: Google Chrome browser console

    
    Failed to load resource: the server responded with a status of 400 (Bad Request)
    http://fonts.googleapis.com/css?family=1&subset=cyrillic%2Carabic%2Cbengal…Chebrew%2Clatin-ext%2Ctamil%2Ctelugu%2Cthai%2Cvietnamese%2Clatin&ver=4.6.1 
    http://fonts.googleapis.com/css?family=1&subset=cyrillic%2Carabic%2Cbengali%2Ccyrillic%2Ccyrillic-ext%2Cdevanagari%2Cgreek%2Cgreek-ext%2Cgujarati%2Chebrew%2Clatin-ext%2Ctamil%2Ctelugu%2Cthai%2Cvietnamese%2Clatin&ver=4.6.1
    
    (This next line wasn't an error, but was outputted to the console)
    jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
    
    Failed to load resource: the server responded with a status of 403 (Forbidden)
    http://maisha.fi/wp/wp-content/themes/eaterstop-pro/testimonialsrotator/js/?ver=4.6.1bd.styles.css 
    
    Failed to load resource: net::ERR_ADDRESS_UNREACHABLE
    http://0.0.0.1/ 
    
    Failed to load resource: the server responded with a status of 403 (Forbidden)
    http://maisha.fi/wp/wp-content/themes/eaterstop-pro/testimonialsrotator/js/?ver=4.6.1bd.styles.css 
    
    Failed to load resource: the server responded with a status of 400 (Bad Request)
    http://fonts.googleapis.com/css?family=1&subset=cyrillic%2Carabic%2Cbengal…Chebrew%2Clatin-ext%2Ctamil%2Ctelugu%2Cthai%2Cvietnamese%2Clatin&ver=4.6.1 
    

    Looking in the theme directory, I noticed there was no style.css in /wp-content/themes/eaterstop-pro/testimonialsrotator/js/ so the status error was confusing. I also checked the file permissions of those directories and all where 0755 along with the same owner/group of the other directories.

    The google font error seems to be coming from
    <link rel='stylesheet' id='eaterstop_pro-gfonts-teamserv-css' href='//fonts.googleapis.com/css?family=1&subset=cyrillic%2Carabic%2Cbengali%2Ccyrillic%2Ccyrillic-ext%2Cdevanagari%2Cgreek%2Cgreek-ext%2Cgujarati%2Chebrew%2Clatin-ext%2Ctamil%2Ctelugu%2Cthai%2Cvietnamese%2Clatin&ver=4.6.1' type='text/css' media='all' />
    but I’m not sure where in the theme this is generated, or how google fonts prepares all these subsets.

    Any advice or help on how to fix this would be appreciated. Thanks.

    • This topic was modified 1 year, 7 months ago by  Leon Sennomo. Reason: Formatting
    #2136

    Leon Sennomo
    Participant

    Hi, I just realised the file ?ver=4.6.1bd.styles.css

    Shouldn’t that be bd.styles.css?ver=4.6.1

    • This reply was modified 1 year, 7 months ago by  Leon Sennomo. Reason: formatting
    #2145

    Grace Themes
    Keymaster

    Hi Leon

    We are looking at this issue.
    Can you please send your site URL at support@gracethemes.com so we can check your website.

    Regards
    Grace Themes

    #2146

    Grace Themes
    Keymaster

    Hi Leon

    Please add some code in function.php file to solve the issue of google font.

    In function.php file at line no. 166 delete the below code

    if ( of_get_option('oswaldfontface', true) != '' ) {
    wp_enqueue_style( 'eaterstop_pro-gfonts-teamserv', '//fonts.googleapis.com/css?family='.rawurlencode(of_get_option('oswaldfontface',true)).'&subset=cyrillic,arabic,bengali,cyrillic,cyrillic-ext,devanagari,greek,greek-ext,gujarati,hebrew,latin-ext,tamil,telugu,thai,vietnamese,latin' );
    }

    And then add below code at line no. 166

    if ( of_get_option('slidetitlefontface', true) != '' ) {
    wp_enqueue_style( 'eaterstop_pro-gfonts-slidertitle', '//fonts.googleapis.com/css?family='.rawurlencode(of_get_option('slidetitlefontface',true)).'&subset=cyrillic,arabic,bengali,cyrillic,cyrillic-ext,devanagari,greek,greek-ext,gujarati,hebrew,latin-ext,tamil,telugu,thai,vietnamese,latin' );
    }
    
    if ( of_get_option('slidedesfontface', true) != '' ) {
    wp_enqueue_style( 'eaterstop_pro-gfonts-sliderdesciprion', '//fonts.googleapis.com/css?family='.rawurlencode(of_get_option('slidedesfontface',true)).'&subset=cyrillic,arabic,bengali,cyrillic,cyrillic-ext,devanagari,greek,greek-ext,gujarati,hebrew,latin-ext,tamil,telugu,thai,vietnamese,latin' );
    }

    Regards
    Grace Themes

    #2147

    Leon Sennomo
    Participant

    Hi, The replacement code you provided worked well. The website details have also been emailed.

    Thanks.

    #2169

    Leon Sennomo
    Participant

    If anyone was wondering about the bd.style.css error, I’ve taken care of it by commenting out the following line in the theme’s functions.php

    	wp_enqueue_script( 'eaterstop_pro-testimonials-bootstrap', get_template_directory_uri().'/testimonialsrotator/js/bootstrap.js', array('jquery') );
    

    So no more error appearing in the console 🙂

    AFAIK, /testimonialsrotator/js/bootstrap.js not really contributing to the testimonial slider. There is also an error in that file (and some duplicate output code), but it’s not really worth discussing because the file isn’t needed.

    #2176

    Grace Themes
    Keymaster

    Hi Leon

    Thank you for pointing this issue. We are looking at this problem.

    Regards
    Grace Themes

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.