Reply To: Unite Slider - Styles Change after Saving

Home Forums Support Unite Slider - Styles Change after Saving Reply To: Unite Slider - Styles Change after Saving

So during troubleshooting of this I found the following in this file:


public static function propagate_default_fonts(){

$default = array (
array(‘url’ => ‘Open+Sans:300,400,600,700,800’, ‘handle’ => ‘open-sans’),
array(‘url’ => ‘Raleway:100,200,300,400,500,600,700,800,900’, ‘handle’ => ‘raleway’),
array(‘url’ => ‘Droid+Serif:400,700’, ‘handle’ => ‘droid-serif’ )

$fonts = get_option(‘tp-google-fonts’, array());

if(!empty($fonts)){ // do nothing
/*foreach($default as $d_key => $d_font){
$found = false;
foreach($fonts as $font){
if($font[‘handle’] == $d_font[‘handle’]){
$found = true;

if($found == false)
$fonts[] = $default[$d_key];

update_option(‘tp-google-fonts’, $fonts);

update_option(‘tp-google-fonts’, $default);




So the first default font in the list is “Open Sans” – and reading that code it looks like if there are no other fonts found, it should load that one. Funny thing – the font I see on the website (not the preview) is “Open Sans”

I am going to do an experiment and see if I change the first default line of code to “PT-Sans” (or something well known like Times New Roman) if it will load that.