Replies: 1
Good day. I cannot for the life of me get the vendd-child theme to work properly. The only file it executes is the function.php. If i copy style.css or create a custom folder edd_templates none of these execute. Iv copied some additional styling into vendd-child/style.css and it does nothing. Likewise, iv copied license_keys.php into the edd_templates directory and nothing gets executed.
Whats the secret here?
In my functions.php i have the following code;
`/**
* Vendd Child Theme Functions
*/
function vendd_child_styles() {
$parent_style = ‘vendd’;
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘vendd-child’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style ),
wp_get_theme()->get( ‘Version’ )
);
}
add_action( ‘wp_enqueue_scripts’, ‘vendd_child_styles’ );
function child_theme_slug_setup() {
load_child_theme_textdomain( ‘parent-theme-slug’, get_stylesheet_directory() . ‘/languages’ );
}
add_action( ‘after_setup_theme’, ‘child_theme_slug_setup’ );
if ( ! defined( ‘EDD_DISABLE_ARCHIVE’ ) ) {
define( ‘EDD_DISABLE_ARCHIVE’, true );
}
Any reason why this is not working?