Child theme – Overriding ‘require_once’ in functions.php

You can use get_stylesheet_directory() to refer to your child theme, then you can point to your file.

require_once( get_stylesheet_directory() . '/includes/theme-styles.php' );

It will load your file and replace the parent theme file.

Leave a Comment