I have a folder in the parent theme that overrides what a single plugin looks like. If I do not copy this folder to my child theme, the appearance of the child theme will be different from the parent.
Is it possible somehow, in the child theme functions.php file, to include this folder (make the child theme this folder). I searched everything but found nothing.
The only way to make a child theme look like a parent (which I can change) is to copy this folder to the child theme folder.
I tried using
$theme_folder = scandir(get_template_directory_uri().'/folder');
But I get the following warnings
Warning: scandir(...): failed to open dir: not implemented in \functions.php on line 20 Warning: scandir(): (errno 9): Bad file descriptor in \functions.php on line 20
And I read that this could be due to a lack of permissions on the server.
source share