Title: Child Theme creation help
Last modified: August 30, 2016

---

# Child Theme creation help

 *  Resolved [myhero](https://wordpress.org/support/users/myhero/)
 * (@myhero)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/child-theme-creation-help/)
 * Hi all,
    I’m busy creating a child theme and have put the info below in my style
   and functions files. I zip them and upload via wp theme upload, the upload fails
   each time. What am I doing wrong?
 * Note I want the child theme name to be ‘aaa’ only. The parent theme I am using
   is ColorMag.
 * Child theme
    ———–
 * STYLE.CSS
 *     ```
       /*
        Theme Name:   aaa
        Theme URI:    http://www.aaa.com
        Description:  aaa
        Author:       aaa
        Author URI:   http://aaa.com
        Template:     ColorMag
        Version:      1.0.0
        License:      GNU General Public License v2 or later
        Text Domain:  lmfpo
       */
       ```
   
 * And this in my FUNCTIONS.PHP
 *     ```
       <?php
   
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
       function theme_enqueue_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
   
       }
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/child-theme-creation-help/#post-6282145)
 * Do you remember the error message you received? One thing I can see is in your
   stylesheet’s header, the `Template:` line needs to contain the name of the folder
   that contains your parent theme, and capitalization matters. It should (probably)
   be:
 * `Template: colormag`
 *  Thread Starter [myhero](https://wordpress.org/support/users/myhero/)
 * (@myhero)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/child-theme-creation-help/#post-6282147)
 * Thanks for you response, I’ve double checked and see that the template name is
   correct: colormag
 * This is the error I get:
 *     ```
       Unpacking the package…
   
       Installing the theme…
   
       The package could not be installed. The theme is missing the style.css stylesheet.
   
       Theme install failed.
       ```
   
 * This is strange because the style.css is present in the zip file.
 *  Thread Starter [myhero](https://wordpress.org/support/users/myhero/)
 * (@myhero)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/child-theme-creation-help/#post-6282148)
 * Oh no, found the problem, the style.css file I created was in seen as a txt file.
 * I’ve saved it in .css format and this has solved the problem.
 * Thanks for your help.
 *  [intellisaf](https://wordpress.org/support/users/intellisaf/)
 * (@intellisaf)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/child-theme-creation-help/#post-6282402)
 * Hi I am a newbie to wordpress, designing a website using colormag. I just want
   to edit a part of this theme related to header. I couldn’t figure out where can
   i actually edit the code to use the header image as header background so the 
   my logo appears over it.
 * I would be grateful if someone could give me a walkthrough.
 *  [ElizabethFlynn](https://wordpress.org/support/users/elizabethflynn/)
 * (@elizabethflynn)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/child-theme-creation-help/#post-6282462)
 * Hello I would like to do the exact same thing ie use the header image as header
   background. Did you get advise on this? Please let me know. Thank you
 *  [veeren9](https://wordpress.org/support/users/veeren9/)
 * (@veeren9)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/child-theme-creation-help/#post-6282480)
 * Hi I did try the code by [@myhero](https://wordpress.org/support/users/myhero/),
   but still getting the error.
 * [@myhero](https://wordpress.org/support/users/myhero/), can you share the zip
   file for the same.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Child Theme creation help’ is closed to new replies.

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [style.css](https://wordpress.org/support/topic-tag/style-css/)

 * 6 replies
 * 5 participants
 * Last reply from: [veeren9](https://wordpress.org/support/users/veeren9/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/child-theme-creation-help/#post-6282480)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
