Skip to main content
1 of 2
Abhik
  • 2.9k
  • 2
  • 23
  • 31

You need to make the function pluggable, that means, to support child themes, the functions in parent theme should use:

if ( !function_exists( 'function_name' )) {
    function function_name() {
        //Stuffs
    }
}  

You should have seen a PHP Error message if you have debugging enabled.

Abhik
  • 2.9k
  • 2
  • 23
  • 31