leglesslizard
4/18/2016 - 1:40 PM

Child theme bare minimum

Child theme bare minimum

/*
 Theme Name:   "Theme Name" Child
 Theme URI:    http://example.com/theme-name-child/
 Description:  "Theme Name" Child Theme
 Author:       John Doe
 Author URI:   http://example.com
 Template:     themename
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  theme-name-child
*/
<?php
// functions.php
// Enqueue parent styles
add_action( 'wp_enqueue_scripts', 'child_theme_enqueues' );
function child_theme_enqueues() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}