• Resolved elijahtailor

    (@elijahtailor)


    Hi! I’m setting up the multilingual site now, and this site uses in different language versions 3 subsets: latin, cyrillic and hebrew.

    In purpose of maintaining some nice view of all language versions I need to reorganize fonts fallback sequence, which is now by default
    “chosen font, Georgia, serif” for headers and
    “chosen font, Helvetica, sans-serif” for paragraphs.

    I’m stuck with switty and kirki documentation and cannot find where and how to add some fonts like “Podkova”, or “David Libre” to the fallback order.

    • This topic was modified 7 years, 6 months ago by elijahtailor. Reason: tag fixing
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there!

    You can use the kirki/fonts/backup_fonts filter:

    add_filter( 'kirki/fonts/backup_fonts', function() {
    	return array(
    		'sans-serif'  => 'Helvetica, Arial, sans-serif',
    		'serif'       => 'Georgia, serif',
    		'display'     => '"Comic Sans MS", cursive, sans-serif',
    		'handwriting' => '"Comic Sans MS", cursive, sans-serif',
    		'monospace'   => '"Lucida Console", Monaco, monospace',
    	);
    });
    

    You can change the fonts in there to whatever you like. Just pay attention to the quotes and double quotes… ??

    Thread Starter elijahtailor

    (@elijahtailor)

    Thx a lot ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fonts Fallback’ is closed to new replies.