Most if not all of the answers to this question are pretty old, or are for edge cases.
I have a child theme for a commercial theme ("Total"). The parent theme's functions.php loads functions from several php files in its "framework" folder. The function I am targeting is in fonts.php, called wpex_standard_fonts
:
if ( ! function_exists( 'wpex_standard_fonts' ) ) {
function wpex_standard_fonts() {
return array(
"Arial, Helvetica, sans-serif",
"Arial Black, Gadget, sans-serif",
...
);
}
}
So, from what I have googled, I take this add to my child theme functions.php with my changes to it, right? So I add my custom font to the array.
But when I go to the admin tool, my custom font menu item is not there.
What did I miss here?
if ( ! function_exists( 'wpex_standard_fonts' ) ) {
will return yes there is a function in the parent theme - isn't that?