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 do themes provide support for child themes?
- Difference between stylesheet_directory and template_directory
- Child theme does not overwrite parent themes style.css
- Removing custom meta box added in parent theme
- 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
- Developing a childtheme, how to disable the parents templates?
- Overriding parent theme file
- How can I make new .css file in child theme override styles in child theme’s style.css
- Overiding functions.php with child-theme
- How do I set up a child-theme without using @import
- How to change default header image dimensions in twentyfourteen child theme?
- Overwrite CSS with without deleting it
- Adding or modifying in files of parent theme via child’s function.php
- 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
- Child theme implementation issues
- override parent theme configuration in child functions.php
- Child Theme Path Being Ignored With wp_enqueue_scripts
- ERROR MESSAGE: Missing index.php—Child Theme
- Child theme style repeated
- bbpress change the word forum, topic, reply in the forum to another word I choose
- How to NOT call Font Awesome or font icons in WordPress
- Specific custom child theme page
- WordPress Child theme’s css not loading
- Child theme works in local environment but is not working on remote
- Tesseract child theme loads slow [closed]
- Confused about how to use wp_enqueue_style
- How to use custom stylesheet only for a template in child theme
- Adding a title below the logo
- Replace part of a parent-theme customizer in the child-theme
- How to add anchor tag at the top of posts, past the header and nav bar?
- How to load parent theme template parts in child theme
- add_filter to parent theme helper class function from child theme
- changing parent theme into child theme
- How to override parent theme template files?
- How Child Themes Directory works for plugins?
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Using filter to override “get_parent_theme_file_path” in child-theme
- Link featured image to post
- Modify a parent theme’s PHP file, and save in child theme
- Is there another way to customize a parent template file besides adding the file to a child theme?
- Getting a list of the PHP files included to generate a page
- Is it necessary to network enable both the parent and child theme for multisite installations?
- Child theme not importing parent styles
- is it possible to add new template in theme twenty seventeen?
- Updating my WordPress.org version will cause my site to break… What can I do to avoid this?
- style.css of child theme is not overwriting parents style.css for .box
- Removing parent theme CSS without editing parent theme
- Two stylesheets acting on one element
- Can’t seem to get javascript code working from child theme
- template_include doesn’t work with child theme
- Remove Stylesheet by URL that has not been enqueued
- Swap SVG icons in child themes
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- How to fix error message to edit sidebar widget text on a livesite childtheme?
- Child Theme Can’t Find Parent In a Folder
- Problems with child theme
- child theme showing all this extra information for following lines
- CSS in child theme to replace !important in parent theme
- Is it possible to slow down site with a bulky child theme?
- Installation directory for WordPress and child theme
- How to include only modifications in child theme?
- Child Theme > Template
- Edit php files in subdirs in a child theme
- Override typo in multiple parent theme files?
- WordPress | enqueue_scripts in a child’s theme returns error