Child theme – how to call a .php file in a subfolder?
-
Greetings, cannot seem to find an answer to this. Any help would be welcomed
I created a child theme the parent theme has a directory /php/phpfile.php that i need to modify
So ive tried a few things and nothing works.
I must first specify that in the original functions.php file i see a required_once statement that loads the file.
So ive made a duplicate directory under the child theme /php/phpfile.php and made my modifications in it.
What now ?
I know i need to add a function in my functions.php file under the childtheme directory to run this version once. But when i do that i get a FUNCTION CAN ONLY BE DECLARED ONCE error message.
Im learning so any explanation would be great.
Cheers.
- The topic ‘Child theme – how to call a .php file in a subfolder?’ is closed to new replies.