I have a parent theme that declare these constant in function.php:
define("THEME_DIR", get_template_directory());
define("THEME_DIR_URI", get_template_directory_uri());
define("THEME_NAME", "BARNELLI");
define("THEME_STYLES", THEME_DIR_URI . "/css");
define("THEME_INCLUDES", THEME_DIR . "/includes");
define("THEME_POST_TYPES", THEME_DIR . "/includes/post-types");
define("THEME_INCLUDES_URI", THEME_DIR_URI . "/includes");
define("THEME_FONTS", THEME_DIR_URI . "/font-awesome");
i need to modify some files included in includes
directory and copy the directory structure (including files).
As i read in Codex Documentation, function.php
in child theme is loaded before the same file in parent's theme and only the files in the root on the parent theme can be overrode in child theme.
If i declare modified constant in child's function.php
will be overrode by parent's function.php
and if i copy (and modify) an included file into child theme directory will not work.
What do you suggest to solve this problem?