Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Bugs in getting google webfonts

Open webangon opened this issue 10 years ago • 4 comments

I have used the this method to enqueue google web fonts . https://github.com/ThemeFuse/Unyson/issues/836

But it works only for first time. If I change the font family it does not load that font . Moreover I inspect the database and found that fw_theme_google_fonts_link the link values are saved . I have deleted that option value and upon saving from admin the value is not updated. It remains blank . But update_option create specific option evenif it was deleted. Isn't unyson do the same ?

webangon avatar Aug 27 '16 15:08 webangon

Hello,

Please give the exact steps to reproduce the problem on our side with code snippets.

ghost avatar Aug 29 '16 11:08 ghost

I just sent you wp admin access.

webangon avatar Aug 29 '16 11:08 webangon

Here is the screenshot. Also if I change font , it acts weird. capture untitled

webangon avatar Aug 29 '16 11:08 webangon

In your code there was

add_action('fw_settings_form_saved',array(&$this, 'google_fonts', 999, 2));

I fixed it

add_action('fw_settings_form_saved',array($this, 'google_fonts'), 999);

Now it throws server 500 error from this function fw_theme_get_remote_fonts(). Now it is up to you to fix it, because it is not a Unyson problem.

ghost avatar Aug 29 '16 12:08 ghost