How to override php file using child theme

Hello,

I have made some changes to the header file in includes/header-top.php and need to be able to place it in the child theme so that it overrides the parent.  I have done some research and found:

require_once( get_stylesheet_directory() . '/includes/header-top.php' );

I added this to the functions.php in the child theme but it is not working.

Do you know of a what for this to happen?

Comments

Sign In or Register to comment.