Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #659234

    I have followed instructions here: http://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/ and here: https://codex.wordpress.org/Child_Themes to create a child theme, but I get this error when I go into Appearance/Themes to try to activate it:
    “Broken Themes

    The following themes are installed but incomplete.

    Name Description
    congletonchild Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.”

    None of the instructions I’ve read say anything about adding or creating an Index.php file, but my error message does mention it. So I tried copying the parent theme’s index.php file into the child’s directory, but that didn’t help.

    Currently in the child directory, I have two files: styles.css which contains this code:

    /*
    02 Theme Name: CongletonChild
    03 Theme URI: http://www.fiveoaksdemo.com/
    04 Description: Child theme for Congleton Lumber
    05 Author: Five Oaks Communications
    06 Author URI: http://www.fiveoaksdemo.com/
    07 Template: enfold
    08 Version: 1.0.0
    09*/
    10
    11@import url(“../enfold/style.css”);

    And I have functions.php file in that child directory that contains this code:

    <?php
    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’ );
    ?>

    Any suggestions? I sure would appreciate some assistance.

    #659384

    Hey Arrastia,

    check out this: http://kriesi.at/documentation/enfold/using-a-child-theme/

    Best regards,
    Andy

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