Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ChrisD2012
Created August 17, 2020 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisD2012/8f0e2ebe12c35f4bdbcbcf4647857529 to your computer and use it in GitHub Desktop.
Save ChrisD2012/8f0e2ebe12c35f4bdbcbcf4647857529 to your computer and use it in GitHub Desktop.
function product_designer_fonts_custom_20200808($fonts){
// to remove existing fonts just replace the variable($fonts) name with new variable($my_fonts)
// adding Google fonts
$fonts[] = array('name'=>'Rye');
$fonts[] = array('name'=>'Nosifer','font color'=>'white');
// Adding custom fonts
$my_fonts[] = array('name'=>'Template', 'src'=>'http://heavymetal.sherlockdesigns.com.au/fonts/CollegeBlockStencil-Regular.ttf','font color'=>'white');
return $my_fonts;
}
add_filter('product_designer_fonts', 'product_designer_fonts_custom_20200808');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment