我的父主题中有一个文件夹,它覆盖了一个插件的外观.如果我不将该文件夹复制到我的子主题,则子主题的外观将与父主题不同.
有可能以某种方式,在子主题的functions.php文件中,包含该文件夹(使子主题使用该文件夹).我搜遍了所有但没有找到任何东西.
使子主题看起来像父(我可以修改)的唯一方法是将该文件夹复制到子主题文件夹中.
我试过了
$theme_folder = scandir(get_template_directory_uri().'/folder');
Run Code Online (Sandbox Code Playgroud)
但我收到以下警告
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
Run Code Online (Sandbox Code Playgroud)
我读过这可能是因为服务器上缺少权限.
| 归档时间: |
|
| 查看次数: |
231 次 |
| 最近记录: |