• Hello

    Great theme and thank you for it.

    I seem to be having some issues creating a child theme, I keep getting ‘The following themes are installed but incomplete. Themes must have a stylesheet and a template.’

    here is my two files (styles.css and functions.php) do you see anything wrong with them? And on my server theme dir is ‘wpspirit-01’ child theme dir is ‘wpspirit-01-child’:

    style.css

    /*
    Theme Name: wpspirit-01-child
    Author: ffadmin
    Template: wpspirit-01
    Version: 1.0
    */
    
    @import url("../wpspirit-01/style.css");

    functions.php

    <?php
    
    add_action( 'wp_enqueue_scripts', 'load_parent_styles_when_child_active' );
    function load_parent_styles_when_child_active() {
    if ( is_child_theme() ) {
            wp_enqueue_style( 'parent-style', trailingslashit( get_template_directory_uri() ) . 'style.css' );
        }
    
    }

    The style.css and functions.php are the only files in my wpspirit-01-child directory.

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