Child theme
-
Hi
Trying to create child theme, but for any reason can’t get it right. This is what I am doing:
1. I have created folder photoline-child
2. In folder above I have created style.css, where:
Theme Name: Photoline Child
Template: photoline-lite
3. In folder above I have functions.php with following:<?php
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );function enqueue_parent_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}?>
4. In WordPress Appearance -> Themes -> Activating my child theme and theme is without style.css
Could you please help me to understand why it’s not picking parent theme style.css ?Thanks
The topic ‘Child theme’ is closed to new replies.
