Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    I’ve tried plugin with flatsome and i’ve found some errors that not let’s the plugin to work in one theme file google-fonts.php in inc/functions

    I’ve changed this code from line 38 to 44 from this

    if($flatsome_opt['type_subset']['latin-ext']){array_push($subsets, 'latin-ext');}
    if($flatsome_opt['type_subset']['cyrillic-ext']){array_push($subsets, 'cyrillic-ext');}
    if($flatsome_opt['type_subset']['greek-ext']){array_push($subsets, 'greek-ext');}
    if($flatsome_opt['type_subset']['greek']){array_push($subsets, 'greek');}
    if($flatsome_opt['type_subset']['vietnamese']){array_push($subsets, 'vietnamese');}
    if($flatsome_opt['type_subset']['cyrillic']){array_push($subsets, 'cyrillic');}

    to this

    if(isset( $flatsome_opt['type_subset']['latin-ext'])){array_push($subsets, 'latin-ext');}
    if(isset( $flatsome_opt['type_subset']['cyrillic-ext'] )){array_push($subsets, 'cyrillic-ext');}
    if(isset( $flatsome_opt['type_subset']['greek-ext'] )){array_push($subsets, 'greek-ext');}
    if(isset( $flatsome_opt['type_subset']['greek'] )){array_push($subsets, 'greek');}
    if(isset( $flatsome_opt['type_subset']['vietnamese'] )){array_push($subsets, 'vietnamese');}
    if(isset( $flatsome_opt['type_subset']['cyrillic'] )){array_push($subsets, 'cyrillic');}

    and now all works good.

    Regards ??

Viewing 1 replies (of 1 total)
  • The topic ‘This plugin is not working.’ is closed to new replies.