Override a theme function in a child theme?


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?

, , Steve 7 years 2014-12-29T14:34:31-05:00 0 Answers 70 views 0

Leave an answer