-
AuthorPosts
-
November 14, 2017 at 6:55 pm #876733
Hi. I’m using the custom fonts Ubuntu Condensed for my headings, and the Ubuntu for my body text.
It all works great most of the time, but after a few edits, not even in the Child Theme options, the font jumps back to the default font (Arial).
Not a deal breaker, but quite annoying after a while. Since it happens without a warning and without a reason I can think of.
This is the code I added to functions.php in my child theme:add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Ubuntu Condensed'] = 'Ubuntu Condensed:400&subset=latin,latin-ext'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Ubuntu'] = 'Ubuntu:300,400,500,700&subset=latin,latin-ext'; return $fonts; }
Any idea what might be happening or how I can fix it?
November 17, 2017 at 3:37 am #877886Hey rhae,
I checked your site and the headings and body font is the Ubuntu – can you provide more details from your side?
Best regards,
John TorvikNovember 27, 2017 at 7:14 pm #882330Hi John,
thanks for your reply. The font is ok now, but after changing some pages, it jumps back to Arial again.
This happens quite often, almost every session when I’m editing pages. I’m not doing anything to the theme options.November 29, 2017 at 12:08 pm #883006Hi John,
for some reason I can’t get the Ubuntu and the Ubuntu Condensed to ‘stick’ anymore.
When I choose them in the options they preview OK, but after I click OK the font on the site is not changed.
Sometimes it works to just change the heading, but the body font in combination with the heading doesn’t work.
Do you have any idea why this is happening?December 1, 2017 at 6:58 am #883717Hi,
We modified the filter a bit and reset the General Styling > Fonts options. The heading and content or body font is set to Ubuntu Condensed and Ubuntu, respectively.
Best regards,
IsmaelDecember 1, 2017 at 10:27 am #883800Good morning, thanks for looking into it.
I just checked the site on a few devices (and emptied the cache and did a browser flush) but the font was set to the default again.
I tried changing them, but setting both the heading and the body font still didn’t work.
For now I set just the heading font to Ubuntu Condensed again.Can you have another look if you can see what’s the problem?
December 4, 2017 at 4:14 am #884499Hi,
I would like to check this again but the site is down. It’s not loading, at least on my end. Please contact your hosting provider.
Best regards,
IsmaelDecember 5, 2017 at 1:18 pm #885033Hi Ismael,
The site is finally back online. Our provider was suffering from a DDOS attach that lasted two days.
If you have time to take another look that would be great.December 5, 2017 at 3:22 pm #885094Hi,
I can see the issue now. The “Ubuntu Condensed” font is the same as “Ubuntu” but the font weight is set to 300. We modified the filter a bit. Please remove browser cache before checking the page.
This is the previous font url which is invalid:
// http://fonts.googleapis.com/css?family=Ubuntu+Condensed:400&subset=latin,latin-ext%7CUbuntu:300,400,400i,500,700&subset=latin,latin-extCurrent font url:
// http://fonts.googleapis.com/css?family=Ubuntu:300,400,400i,500,700&subset=latin,latin-extBest regards,
IsmaelDecember 5, 2017 at 3:34 pm #885101Hi Ismael,
I’m afraid that’s incorrect. The Ubuntu Condensed is a separate font, with a weight of 400.
Ubuntu Condensed
The 300 weight is a light version.The font (although it was the wrong version) was the Ubuntu when I opened the site, but when I opened the font options in WordPress everything was set to the default font Arial again.
Can you have another look?
December 6, 2017 at 8:05 am #885410Hi,
Odd. I can’t configure the Ubuntu Condensed separately before. They are indeed different. We modified the filter again.
The headings are now set to “ubuntu condensed” while the body font is set to “ubuntu”.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.