Support » Theme: Twenty Fourteen » child theme – is this right?

  • Trying to follow the directions in codex for making a child theme, can someone tell me if this is right? :

    three files in a new folder named twentyfour-custom:
    functions.php
    rtl.css
    style.css

    my functions.php code:

    <?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( 'parent-style', get_template_directory_uri() . '/css/ie.css' );
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/css/editor-style.css' );
    }


    notice no ending / closing php tag in functions.php above

    rtl.css has this code:

    /*
    Theme Name: Twenty Fourteen Child
    Template: twentyfourteen
    */

    style.css has this code:

    /*
     Theme Name:   Twenty Four Custom
     Theme URI:    http://example.com/twenty-four-custom/
     Description:  Twenty Four Custom
     Author:       John Doze
     Author URI:   http://example.com
     Template:     twentyfourteen
     Version:      1.0.1
     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:  twenty-fourteen-child
    */

    Is this the right way to get all this setup?

  • The topic ‘child theme – is this right?’ is closed to new replies.