How to override the âincâ folder (or any folder) in a theme using child theme?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
I am using Storefront theme (But question isn't specify to this theme, I am asking question for any theme).
I can easily override files like header.php, footer.php using child theme(just copy and paste the file).
But I can't override any files which is on "inc" folder (any folder). How can I override those files?
themes templates child-theme
add a comment |Â
up vote
1
down vote
favorite
I am using Storefront theme (But question isn't specify to this theme, I am asking question for any theme).
I can easily override files like header.php, footer.php using child theme(just copy and paste the file).
But I can't override any files which is on "inc" folder (any folder). How can I override those files?
themes templates child-theme
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am using Storefront theme (But question isn't specify to this theme, I am asking question for any theme).
I can easily override files like header.php, footer.php using child theme(just copy and paste the file).
But I can't override any files which is on "inc" folder (any folder). How can I override those files?
themes templates child-theme
I am using Storefront theme (But question isn't specify to this theme, I am asking question for any theme).
I can easily override files like header.php, footer.php using child theme(just copy and paste the file).
But I can't override any files which is on "inc" folder (any folder). How can I override those files?
themes templates child-theme
themes templates child-theme
edited 1 hour ago
Jack Johanssonâ¦
11.1k71440
11.1k71440
asked 1 hour ago
I am the Most Stupid Person
8813
8813
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
WordPress only looks for the default template files while loading the child theme. So does woocommerce.
Any extra folder or file that exists in your parent theme can not be overridden, unless the developer is using actions and filters that allows you to hook into them. Therefore, a simple require()
or include()
can't be overridden by a child theme.
What you can do is to track the template file that is calling the files from the inc
folder, and then override those in your theme's folder. You might need to go as back as functions.php
.
For a complete list of default template files, take a look at the template hierarchy.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
WordPress only looks for the default template files while loading the child theme. So does woocommerce.
Any extra folder or file that exists in your parent theme can not be overridden, unless the developer is using actions and filters that allows you to hook into them. Therefore, a simple require()
or include()
can't be overridden by a child theme.
What you can do is to track the template file that is calling the files from the inc
folder, and then override those in your theme's folder. You might need to go as back as functions.php
.
For a complete list of default template files, take a look at the template hierarchy.
add a comment |Â
up vote
2
down vote
WordPress only looks for the default template files while loading the child theme. So does woocommerce.
Any extra folder or file that exists in your parent theme can not be overridden, unless the developer is using actions and filters that allows you to hook into them. Therefore, a simple require()
or include()
can't be overridden by a child theme.
What you can do is to track the template file that is calling the files from the inc
folder, and then override those in your theme's folder. You might need to go as back as functions.php
.
For a complete list of default template files, take a look at the template hierarchy.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
WordPress only looks for the default template files while loading the child theme. So does woocommerce.
Any extra folder or file that exists in your parent theme can not be overridden, unless the developer is using actions and filters that allows you to hook into them. Therefore, a simple require()
or include()
can't be overridden by a child theme.
What you can do is to track the template file that is calling the files from the inc
folder, and then override those in your theme's folder. You might need to go as back as functions.php
.
For a complete list of default template files, take a look at the template hierarchy.
WordPress only looks for the default template files while loading the child theme. So does woocommerce.
Any extra folder or file that exists in your parent theme can not be overridden, unless the developer is using actions and filters that allows you to hook into them. Therefore, a simple require()
or include()
can't be overridden by a child theme.
What you can do is to track the template file that is calling the files from the inc
folder, and then override those in your theme's folder. You might need to go as back as functions.php
.
For a complete list of default template files, take a look at the template hierarchy.
answered 1 hour ago
Jack Johanssonâ¦
11.1k71440
11.1k71440
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwordpress.stackexchange.com%2fquestions%2f315760%2fhow-to-override-the-inc-folder-or-any-folder-in-a-theme-using-child-theme%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password