Include files in child theme functions file

Question

Typically in my theme function file I’ll require other files to keep things neat.

require_once("foo.php");

Now working in a child theme I’d like to do that same. I’m adding custom admin options and it seems impossible to include code. I’ve echoed out the path to make sure I’m calling the right file and it is calling the proper location but nothing inside that file seems to run. The code runs fine if placed inside the child theme functions file.

0
, curtismchale 2 years 2020-01-05T09:42:02-05:00 0 Answers 84 views 0

Leave an answer

Browse
Browse