Viewing 1 replies (of 1 total)
  • you can just cut and paste the code from the codex just surround it with the <?php ?> tags.
    just be sure to surround the code with the <?php ?> tags.

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array('parent-style')
        );
    }
    ?>
Viewing 1 replies (of 1 total)

The topic ‘How to enqueue child theme style sheets’ is closed to new replies.