Black Friday & Cyber Monday Sale | Get Upto 30% OFF on Annual and Lifetime plan. Use Coupon Code GTBFCM22 Buy Now

WordPress Website Templates

Find Professional WordPress themes Easy and Simple to Setup

Reply To: [Eaterstop-pro] Some load errors

#2146
Grace Themes
Participant

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