Black Friday & Cyber Monday Offer | Flat 20% OFF on Lifetime & All Themes Package. Use coupon code BFCM24 | Offer valid till 5th Dec 2024 Buy Now

WordPress Website Templates

Find Professional WordPress themes Easy and Simple to Setup

inner banner

[Eaterstop-pro] Some load errors

Tagged: 

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.

    #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

    #2145
    Grace Themes
    Member

    Hi Leon

    We are looking at this issue.
    Can you please send your site URL at [email protected] so we can check your website.

    Regards
    Grace Themes

    #2146
    Grace Themes
    Member

    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
    Member

    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.