Hi there,
I need to install a child-theme with my woodmart installation. The Docs say there is a woodmart-child in the downloaded zip package. However, there is none. I tried the manual installation but could not make it work. I put the following code in the style.css and functions.php inside the woodmart-child.
style.css
/*
Theme Name: Woodmart Child
Theme URI: http: //example.com/
Description: Child theme for the Woodmart design
Author: Gallus
Author URI: http: //www.hongkiat.com/blog/
Template: woodmart
Version: 1.0
*/
funstions.php
<?php
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
wp_enqueue_style( 'child-style', get_stylesheet_uri(),
array( 'parenthandle' ),
wp_get_theme()->get('Version') // this only works if you have Version in the style header
);
}
file structure:
…/wp-content/themes/woodmart
…/wp-content/themes/woodmart-child