Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #304100

    Hi,

    For some reason my prevous thread was closed with 1 unresolved issue (https://kriesi.at/support/topic/wordpress-mu-subdomain-issue-import-and-setting-dont-work/)

    So basically I’ve made a custom font (actually added cyrillic support to Open Sans)
    code added to child’s function.php

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Open Sans C'] = 'Open Sans:400,600&subset=cyrillic';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Open Sans C'] = 'Open Sans:400,600&subset=cyrillic';
    return $fonts;
    }

    Whenever I set Open Sans C in settings it only stays untill i log-out

    http://sud.nasledstvo.biz.ua/

    #304206

    Hey!

    If you want to add a subset to the Google Font output use this code instead:

    function add_subset_func($fontlist) {
    	$fontlist .= "&subset=cyrillic";
    	return $fontlist;
    }
    add_filter('avf_google_fontlist', 'add_subset_func');
    

    Regards,
    Josue

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