It depends entirely on a) what functions and template files you’re talking about, and b) how those functions are defined, or template files are called, in the Parent Theme.
If the Parent Theme uses get_template_part()
, then you’re golden. If the Parent Theme uses get_stylesheet_directory_uri()
or STYLESHEETPATH
, then you can override, with caveats. If the Parent Theme uses get_template_directory_uri()
or TEMPLATEPATH
, then you’re going to have a difficult time.
With functions, if the Parent Theme wraps the functions in a function_exists()
conditional, then you can simply override such functions by declaring them in the Child Theme. With hooks, you can simply remove_action
or remove_filter
.
Related Posts:
- How to override parent functions in child themes?
- Versioning @import of parent theme’s style.css
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Why is the Child Theme Stylesheet Not Loading?
- Theme Customization API and child themes
- Get Parent Theme Author Name
- Get parent theme version
- How to use parent theme’s enqueue methods
- 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?
- Use admin options from parent theme in child theme
- How to “remove” file from parent theme
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- replace parent theme images in child theme
- Localization: Textdomain of Child teme
- the file placed in the child theme is not included
- How do I override a sidebar that is registered in a parent theme when using a child theme?
- Remote install won’t find Parent theme when intalling Child Theme, but local install does
- Order of stylesheets in child theme
- How to create a parent theme for accesspress parallax theme?
- What are the best practices for maintaining and deploying several parent themes?
- Which is the child theme and which is the parent theme?
- Creating a child theme: How do I find the template name of the parent directory?
- overwrite code snippet from parent to child theme
- WordPress + Child Theme = Am I missing something?
- Referencing parent theme image from child theme
- Override file in parent theme
- Can I place “parent theme” inside a child theme folder?
- Making a child theme in order to update the parent theme
- Can I still switch to a child theme?
- How to activate the child theme in WordPress?
- How to add modified php in child theme?
- How to override JavaScript files in child theme?
- How to add code to Header.php in a child theme?
- Why does my child theme CSS get called twice?
- How to *remove* a parent theme page template from a child theme?
- How do themes provide support for child themes?
- Attributing a version number to a child theme’s main stylesheet
- Preserving theme settings in child theme
- Is it possible to make grandchild themes?
- Override parent theme translation on child theme
- Adding a second email address to a completed order in WooCommerce [closed]
- How to cache bust a child theme style.css
- Child theme – Overriding ‘require_once’ in functions.php
- Is a text-domain necessary for a child theme
- How to modify single.php in a child theme?
- Cannot get Child Theme to load latest version of style.css
- @package & @subpackage: how to use with child themes
- How to override function in child theme
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Hiding Parent Theme
- Child Theme vs Duplicate Theme Renamed
- get_stylesheet_directory() vs get_template_directory() for child theme
- How to override a function when isn’t at functions.php
- Difference between stylesheet_directory and template_directory
- Declaring an instance of class included in parent theme from child theme functions.php
- get_parent_theme_file_path vs. get_template_directory
- How to Add Customizer Setting in Child Theme
- Git vs Child Theme
- Give priority to child theme stylesheet
- Child theme does not overwrite parent themes style.css
- how to call files in child theme?
- Removing custom background and header feature in child theme
- Optimal approach for replacing the 8 header images in a child theme?
- How to transfer changes to a child theme?
- WordPress master + child themes + Git workflow
- How do I override a parent theme’s language files with a child theme?
- something like is_childtheme()
- override parent theme configuration in child functions.php
- syntax for remove_filter in parent theme with class
- Child theme showing a blank page
- Child theme preview missing
- Child Theme Performance
- Removing custom meta box added in parent theme
- How could child theme be different than parent theme if I haven’t made changes?
- How to solve “Warning: Use of undefined constant” when overriding a parent theme function in the child theme?
- get_template_directory vs get_stylesheet_directory
- Theme customizer: How do you grab the value later?
- Override parent theme function that is not hooked or in the functions.php file
- Developing a childtheme, how to disable the parents templates?
- Under heavy cache conditions, updating the parent theme don’t reflect changes with child theme enabled
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- Child Theme, Functions.php Issues
- Redefining function in child themes
- How do I check for child theme files first using include, before going to parent theme?
- How can you change default color scheme in a Twenty Fifteen child theme?
- When activating a child theme, what core settings have to be reset ie; Custom Menus etc?
- Hwo to turn off “get_parent_theme_file_path” in child-theme?
- How to dequeue / deregister parent theme style
- Overriding parent theme file
- How to override the Parent theme Function into child themes functions.php
- How to override filter in child theme?
- Child Theme CSS Not Overriding Parent Theme In MultiSite Site
- How can I make new .css file in child theme override styles in child theme’s style.css
- How to remove a parent theme template from Quick Edit?
- add sidebar area to header of child theme
- Enqueue styles properly in a child theme and stylesheets location
- Enqueue more than two CSS styles in a child theme functions.php
- Proper way to make a tweaked theme into child-theme setting?