Child Theme?
-
I’m unable to create a functioning child theme using standard techniques. Are there special steps needed?
Here’s my child theme files:
style.css
=====
/*Theme Name: weDocs Child
Theme URI: http://wedevs.com/theme/wedocs/
Author: Tareq hasan
Author URI: http://tareq.wedevs.com/
Template: wedocs-develop*/
=====
functions.php:
=====
<?php
function my_theme_enqueue_styles() {$parent_style = ‘parent-style’;
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘app-style’, get_template_directory_uri() . ‘/app.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style ),
wp_get_theme()->get(‘Version’)
);
}
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
?>
=====
- The topic ‘Child Theme?’ is closed to new replies.