admin管理员组文章数量:1331849
I've read this post and I don't think this question is a duplicate because I have a specific question that has not been answered.
My parent theme is using the following to require a template tag php file
require get_template_directory() . '/inc/template-tags.php';
Is it possible to overide this in my child theme, If I place the same code in my functions.php and place the folder and file the same in my child theme folder I get a error saying
Fatal error: Cannot redeclare progression_studios_category_transient_flusher() (previously declared in /home/anders/Local Sites/site/app/public/wp-content/themes/vayvo-progression-child/inc/template-tags.php:401) in /home/anders/Local Sites/site/app/public/wp-content/themes/vayvo-progression/inc/template-tags.php on line 401
Is it possible to work around this.
Thanks ahead of time.
本文标签: phpChild theme overirde templatetags in a theme built on underscores in inctemplatetags
版权声明:本文标题:php - Child theme overirde template-tags in a theme built on underscores in inctemplate-tags 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742274613a2444958.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论