I'm trying to include my parents themes functions.php include into my child theme functions.php.
I have a standard setup for a functions.php in my parent.
This is what i have in my child themes functions.php
<?php
/**
* Base functions and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Base
*/
locate_template( array( '/vendor/autoload.php', '/functions.php' ), true, false );
the autoload.php file contains things like timber framework which works, it it doesn't seem to bring in the parent functions.php
Any help would be much appreciated.
Thanks Jake.
functions.php
is always loaded right after the child theme’s. Why do you want to load it twice? – fuxia♦ Jan 12 '16 at 21:26after_setup_theme
. The parent’s file will be loaded then. You shouldn't run code unconditionally anyway. – fuxia♦ Jan 12 '16 at 23:03