Skip to content

Instantly share code, notes, and snippets.

@amdrew
Last active December 18, 2015 07:29
Show Gist options
  • Save amdrew/5747046 to your computer and use it in GitHub Desktop.
Save amdrew/5747046 to your computer and use it in GitHub Desktop.
Allows you to add more fonts to Shop Front's typography plugin
function shopfront_child_theme_site_title_fonts( $fonts ) {
// the font-name must match the google font name exactly as shown on https://edgewebfonts.adobe.com/fonts
$fonts['pt-sans'] = 'PT Sans';
$fonts['droid-sans'] = 'Droid Sans';
return $fonts;
}
add_filter( 'shopfront_typography_site_title_fonts', 'shopfront_child_theme_site_title_fonts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment