Twenty Thirteen uses the following in functions.php: require( get_template_directory() . '/inc/custom-header.php' );
. When I copy /inc/custom-header.php to twentythirteen-child, it isn’t replaced. I can’t use require()
because two copies will be included. How this should be handled?
1 comment
Comments are closed.
get_template_directory
looks in the parent theme for files.This file is not meant to be replaced. You will need to find another way to do what you need to do.
Perhaps remove the function hooked here and add your own?