Ugrás a tartalomhoz


Add more Google Fonts to options


  • Nem szólhatsz hozzá ehhez a témához.
Még nem érkezett válasz erre a témára

#1 George W.Push

    Mr. President

  • Regisztrált tag
  • PipaPipaPipaPipaPipaPipa
  • 2.035 Hozzászólás:

Elküldve: 2012-01-24 - 15:03

The WooFramework comes with integrated Google Fonts in the options panel, and we try to update these fonts regularly so new ones are added for you to use. Let’s look at a method for you to use if your font isn’t available in the options.

Open up your theme’s functions.php and add this simple function:

// add the function to the init hook
add_action( 'init', 'woo_add_googlefonts', 20 );

// add a font to the $google_fonts variable
function woo_add_googlefonts () {
	global $google_fonts;
	$google_fonts[] = array( 'name' => 'Lustria', 'variant' => ':r,b,i,bi');
}

Here we have added a font name called Lustria, and after adding this it will show up in your options panel.

The new font in the typography option



A teljes bejegyzés elolvasása





1 felhasználó olvassa ezt a témát.

0 felhasználó, 1 vendég, 0 anonim felhasználó