If the file is included via get_template_part
or a part of the template hierarchy, then yes, create a file with the same name in a child theme and WordPress will preferentially load that file.
If the file is included via include
/require
, then no, those are PHP language features, not WordPress functions, there is no way to intercept or override them so that your file is loaded instead. Either fork the theme or contact the theme support route. The author may have provided alternative methods of overriding the template, or be able to add support for it.
Remember, child themes let you preferentially load child theme templates via the template hierarchy and get_template_part
. They can’t auto-replace arbitrary PHP files, CSS, JS etc files by putting them in a child theme and expecting them to be used instead
Related Posts:
- Removing a Parent Theme’s Menu Items
- I want to hide the parent theme in admin
- switch_to_blog() for parent theme
- Changing an html website to WordPress and missing the Parent Theme
- WordPress frameworks and parent themes [closed]
- How to override parent functions in child themes?
- Versioning @import of parent theme’s style.css
- How to *remove* a parent theme page template from a child theme?
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Override parent theme translation on child theme
- Child theme – Overriding ‘require_once’ in functions.php
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Why is the Child Theme Stylesheet Not Loading?
- Child Theme vs Duplicate Theme Renamed
- Theme Customization API and child themes
- Difference between stylesheet_directory and template_directory
- Declaring an instance of class included in parent theme from child theme functions.php
- How to Add Customizer Setting in Child Theme
- Get Parent Theme Author Name
- Get parent theme version
- Namespacing WordPress project according to FIG standards
- How to use parent theme’s enqueue methods
- override parent theme configuration in child functions.php
- Do all files in child theme override the parent?
- Is it possible to override this function/class in a child theme?
- Do I need to update the child theme too after updating the parent?
- Override parent theme function that is not hooked or in the functions.php file
- Global Parent theme for all sites
- Use admin options from parent theme in child theme
- How to dequeue / deregister parent theme style
- How to “remove” file from parent theme
- Child Theme CSS Not Overriding Parent Theme In MultiSite Site
- How to remove a parent theme template from Quick Edit?
- add sidebar area to header of child theme
- Override parent theme translation on child theme
- How to check active theme is parent or child wordpress
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Should I ask a theme developer to use locate_template rather than require_once
- How to change Parent Themes in Child Theme CSS
- Can I customize any WordPress parent block-based theme template files by child theme like a parent classic theme?
- replace parent theme images in child theme
- PHP Notices appear when browsing any page in admin, but only for child theme, using code from WP Codex
- Using the child theme functions.php to change the customizer.php on parent theme
- How can I remove css from a child theme?
- override parent theme configuration in child functions.php
- Proper way of using functions in action hook?
- Child themes: disabling the parent
- Passing variable from child theme to parent theme
- Load parent theme files before child theme functions.php
- Updating parent themes vs. updating starter theme
- Localization: Textdomain of Child teme
- How to load parent theme style.css?
- Does theme update also update a child theme zip
- How do I override a sidebar that is registered in a parent theme when using a child theme?
- Avoid loading css from parent theme
- Remote install won’t find Parent theme when intalling Child Theme, but local install does
- What happens to child theme if I change to new version of parent theme?
- Order of stylesheets in child theme
- How can I change a function in a parent theme via a child themes functions.php
- Grandchild themes and optimal network architecture
- Help with child theme enqueuing additional css files
- How to preserve changes in templates and other files
- changing blog title to an image using filter function in child theme
- Switching to a child theme
- How to create a parent theme for accesspress parallax theme?
- Child Theme with multiple css files
- why this media query is not working / not loading when I put it in child theme?
- Set parent theme language with custom .mo files
- How to load parent theme template parts in child theme
- add_filter to parent theme helper class function from child theme
- Removing parent theme action on pluggable function not working
- append to existing parent theme function
- Overrite parent functions using child functions
- How Do I Get My Post Tags to Alphabetize?
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Enqueuing latest version of jQuery into a child theme returns a blank screen
- wp_enqueue_style referencing parent theme
- What are the best practices for maintaining and deploying several parent themes?
- when I create a page with a /blog permalink the css gets messed up
- Which is the child theme and which is the parent theme?
- Is there another way to customize a parent template file besides adding the file to a child theme?
- Creating a child theme: How do I find the template name of the parent directory?
- Is it necessary to network enable both the parent and child theme for multisite installations?
- overwrite code snippet from parent to child theme
- Creating child theme out of Coeur
- get_template_directory_uri() links to child theme not parent
- Free theme and css/bootstrap.css is not overridden in the child theme
- Passing variable from child theme function to parent theme filter
- Removing parent theme CSS without editing parent theme
- WordPress + Child Theme = Am I missing something?
- Multisite default theme and child applied to network
- Referencing parent theme image from child theme
- Override file in parent theme
- Set Default Post as Parent Child (Nested) Relation
- Child Theme style.css changes aren’t showing. Parent “style-less.css” over rides it, and won’t update
- Can I place “parent theme” inside a child theme folder?
- Parent/Child themes – both CSS files loaded
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- Parent Theme update was not showing on the update page