• Making a child theme… having trouble working with some files from parent theme that are in includes/files.php. All of the other main child theme files like styles, functions, header, footer seem to work fine. What am I missing.

    The code that calls the file is in parents function:

    /**
     * Include the framework and template tags
     */
    $tempdir = get_template_directory();
    
    // Include framwork bits
    require_once $tempdir .'/framework/init.php';
    require_once $tempdir .'/includes/init.php';
    
    // Custom template tags for theme
    require $tempdir . '/includes/template-tags.php';

    Looking to edit template-tags.php and theme-customize.php which is called in init.php.

  • The topic ‘Child Theme and nested files’ is closed to new replies.