Child Themes Done the Right Way using functions.php

Was a time when linking a child theme to the parent theme was done via an import in the style sheet.

No more, now the best way to do this is via the functions.php file as follows:

function my_theme_enqueue_styles() {

    $parent_style = 'parent-style'; 

    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 ),
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );

NOTE: You still need the parent to be specified in the comments at the top of the child theme style sheet as follows:

Theme Name:babelbuilder16
Theme URI:
Description: Theme created by
Author URI:
Version: 1.0
Template: twentyfourteen