[Eaterstop-pro] Some load errors
Tagged: eaterstop
- This topic has 6 replies, 2 voices, and was last updated 7 years, 6 months ago by Grace Themes.
-
AuthorPosts
-
November 14, 2016 at 1:12 pm #2134Leon SennomoParticipant
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.
November 14, 2016 at 1:31 pm #2136Leon SennomoParticipantHi, I just realised the file
?ver=4.6.1bd.styles.css
Shouldn’t that be
bd.styles.css?ver=4.6.1
November 15, 2016 at 3:08 am #2145Grace ThemesMemberHi 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 ThemesNovember 15, 2016 at 7:09 am #2146Grace ThemesMemberHi 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 ThemesNovember 15, 2016 at 8:13 am #2147Leon SennomoParticipantHi, The replacement code you provided worked well. The website details have also been emailed.
Thanks.
November 18, 2016 at 7:12 am #2169Leon SennomoParticipantIf 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.
November 19, 2016 at 6:35 am #2176Grace ThemesMemberHi Leon
Thank you for pointing this issue. We are looking at this problem.
Regards
Grace Themes -
AuthorPosts
- You must be logged in to reply to this topic.