If the desired functions are in the parent theme’s functions.php
then you can include them in your currently executing child theme functions.php
with this call:
include( get_template_directory() . '/functions.php');
get_template_directory()
finds the parent’s directory even when using a child theme.
Note that this will run everything found to be executable in the parent theme’s functions.php
. So whatever it does, it will do when you pull it in.
If there are things in the parent’s functions.php
that are enqueued that you don’t want you can always dequeue them ( after the call to get_template_directory()
) in the child’s functions.php
with the appropriate dequeue function: wp_dequeue_script()
or wp_dequeue_style()
Related Posts:
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Why is the Child Theme Stylesheet Not Loading?
- Get parent theme version
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Versioning @import of parent theme’s style.css
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Theme Customization API and child themes
- Give priority to child theme stylesheet
- Get Parent Theme Author Name
- Do all files in child theme override the parent?
- Do I need to update the child theme too after updating the parent?
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- Use admin options from parent theme in child theme
- How to dequeue / deregister parent theme style
- How to “remove” file from parent theme
- Enqueue styles properly in a child theme and stylesheets location
- Style.css in child theme is loaded before Bootstrap
- How are updates to the style.css file in child theme recognized?
- How do I set up a child-theme without using @import
- Dequeue only stylesheets but not inline style added using wp_add_inline_style
- Enqueue stylesheets if parent theme has more than one .css file
- replace parent theme images in child theme
- ERROR MESSAGE: Missing index.php—Child Theme
- Priority loading file css in child theme
- Is my child theme working properly
- Child theme style repeated
- Localization: Textdomain of Child teme
- How to NOT call Font Awesome or font icons in WordPress
- @font-face broken in child theme
- Prevent a base themes css file from loading
- How do I override a sidebar that is registered in a parent theme when using a child theme?
- WordPress Child theme’s css not loading
- Remote install won’t find Parent theme when intalling Child Theme, but local install does
- Confused about how to use wp_enqueue_style
- Order of stylesheets in child theme
- How to create a parent theme for accesspress parallax theme?
- why this media query is not working / not loading when I put it in child theme?
- Child style loads before all parent styles
- 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?
- How can I get this child theme stylesheet to properly load? Or if it is correct, why doesn’t my child theme appearance match the parent?
- Creating child theme out of Coeur
- How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme
- get_template_directory_uri() links to child theme not parent
- WordPress + Child Theme = Am I missing something?
- Referencing parent theme image from child theme
- Override file in parent theme
- Can only override parent theme styling with ‘!important’ in child style.css
- Can I place “parent theme” inside a child theme folder?
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- Remove Stylesheet by URL that has not been enqueued
- How to enqueue multiple style sheets into my child theme in wordpress (oceanwp)
- Making a child theme in order to update the parent theme
- How do I create a child theme from PowerMag theme
- how to fix loading scripts in child theme?
- Can I still switch to a child theme?
- Why won’t my Custom CSS Load
- Why are my parent styles loading after my child styles?
- How to activate the child theme in WordPress?
- How to add modified php in child theme?
- How to create my own style.css file in an wordpress child-theme
- Can’t disable child theme style
- How to override JavaScript files in child theme?
- How do I dequeue a parent theme’s CSS file?
- How to override parent functions in child themes?
- 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
- 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
- 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
- Child theme does not overwrite parent themes style.css
- how to call files 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
- Is it possible to override this function/class in a child theme?
- Child theme showing a blank page