How to override the “inc” folder (or any folder) in a theme using child theme?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question





























    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?










    share|improve this question

























      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?










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 1 hour ago









      Jack Johansson♦

      11.1k71440




      11.1k71440










      asked 1 hour ago









      I am the Most Stupid Person

      8813




      8813




















          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.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "110"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            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






























            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.






            share|improve this answer
























              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.






              share|improve this answer






















                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.






                share|improve this answer












                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                Jack Johansson♦

                11.1k71440




                11.1k71440



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    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













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery