Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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?

    #877886

    Hey 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 Torvik

    #882330

    Hi 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.

    #883006

    Hi 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?

    #883717

    Hi,

    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,
    Ismael

    #883800

    Good 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?

    #884499

    Hi,

    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,
    Ismael

    #885033

    Hi 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.

    #885094

    Hi,

    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-ext

    Current font url:
    // http://fonts.googleapis.com/css?family=Ubuntu:300,400,400i,500,700&subset=latin,latin-ext

    Best regards,
    Ismael

    #885101

    Hi 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?

    #885410

    Hi,

    Odd. I can’t configure the Ubuntu Condensed separately before. They are indeed different. We modified the filter again.

    // http://fonts.googleapis.com/css?family=Ubuntu+Condensed%7CUbuntu:300,400,400i,500,700&subset=latin,latin-ext

    The headings are now set to “ubuntu condensed” while the body font is set to “ubuntu”.

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.