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
- How to override parent functions in child themes?
- How to *remove* a parent theme page template from a child theme?
- How to cache bust a child theme style.css
- @package & @subpackage: how to use with child themes
- WordPress master + child themes + Git workflow
- How could child theme be different than parent theme if I haven’t made changes?
- Child Theme, Functions.php Issues
- Child theme error “Template is missing”
- Altered media sizes (in dash), not updating to existing images/posts
- How do I make wp_localize_script variables available for child theme?
- Proper way of using functions in action hook?
- Cannot dequeue script in child theme
- Child theme style.css isn’t overwriting parent style.css
- Activate Child Theme .mo and .po files
- Grandchild themes and optimal network architecture
- Override file inside inc in child theme
- Child Themes of Non-WordPress Sanctioned Templates
- Overrite parent functions using child functions
- Child themes, over riding in the parents theme
- ‘Recent Posts’ links open in new window, without copying the ‘WP_Widget_Recent_Posts’ class
- Best method to add style sheets into child theme?
- wp_enqueue_style referencing parent theme
- Child Theme Variables
- Getting an error. Need to add favicon in my child theme functions.php. What’s wrong?
- Child Theme over write rules
- using wp enqueue style to create a CSS file specifically for a page template
- How to make a child theme independent of parent?
- Sliding-Doors Child Theme
- WordPress Child Theme – twentyeleven
- Reenable disabled Elementor widget via child theme
- Why would the child theme load in the Customize preview, but not on the site itself?
- Copy files from main to child theme (after designing website)
- Twenty Seventeen – Navigation bar, logo, header size
- Adding translation files to a child theme
- is it ok to dequeue default parent stylesheet from custom page templates in child theme?
- Override parent theme function that is not hooked or in the functions.php file
- About wordpress child themes
- Body classes in child theme