Celebrate Christmas and New Year with 10% off on Themes Bundle, use coupon code "XMAS10" Buy Now

Reply To: [Eaterstop-pro] Some load errors

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

#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