Support » Theme: Spacious » Creating Child Theme

  • Hi
    I am trying to create a child theme for spacious. Under my spacious-child folder I now have two files:

    A style file showing:

    /*
    Theme Name: spacious-child Theme
    Description: spacious-Child Theme
    Template: spacious
    */

    /* =Theme customization starts here
    ——————————————————- */

    And a functions file showing

    <?php
    // Faster than @import
    add_action( ‘wp_enqueue_scripts’, ‘my_child_theme_scripts’ );
    function my_child_theme_scripts() {
    wp_enqueue_style( ‘parent-theme-css’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘parent-theme-css’, get_template_directory_uri() . ‘/css/dark.css’ );
    }

    ?>

    This has worked fine but I just wondered if I needed to add anything else to ensure all the site works?

    Thanks in advance for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.