Created
August 17, 2020 01:16
-
-
Save ChrisD2012/8f0e2ebe12c35f4bdbcbcf4647857529 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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