Support » Fixing WordPress » Child theme not working for twentyeleven theme

  • Resolved rarefires


    Hello all,

    I am using WordPress 3.2, and have been trying to create a child theme for my “twentyeleven” theme at . Unfortunately, I’ve had little luck getting past the first few steps…

    1. I create the new folder “twentyeleven-child” within my themes folder.

    2. Using the following code, I create a new style.css in TextEdit (for Mac), and use FTP to upload it to the folder I created above:

    Theme Name: Twentyeleven Child
    Theme URI:
    Description: Child theme for the twentyeleven theme
    Author: Greg Amos
    Author URI:
    Template: twentyeleven

    @import url(“../twentyeleven/style.css”);

    @import url(“../twentyeleven/rtl.css”);

    3. I go to my Dashboard -> Appearance -> Themes, refresh the Themes display… and to my dismay, see this message:

    Twentyeleven Child\ The parent theme is missing. Please install the “twentyeleven\” parent theme.

    I have tried renaming the folder, etc, but for some reason WordPress will not accept the new child theme I have created.

    I note that WordPress 3.2. says “Themes must have a stylesheet and a template.”, though none of the online examples I’ve seen have any problem due to lack of templates… they just create the style.css using the code above, and WordPress instantly recognizes it as a child theme.

    I have made minor tweaks to my “twentyeleven” theme, so I am wondering if this is a problem. I am hoping I don’t have to re-install twentyeleven, however if this is the best solution I will do it.

    Any tips?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Check that the twenty eleven themes folder and files exists as /wp-content/themes/twentyeleven/ and style.css

    Check you child themes folder exists at the same level /wp-content/themes/twentyeleven-child/ with your style.css

    If this fails try the child theme download from my website and see if it works on your install.

    RE: the minor tweaks in twenty eleven, copy the files to the child theme, and style changes copy across to the child, and re-install twenty eleven.




    I have resolved the issue, and it was a simple solution: I had to switch to using plain text (UTF-8) in the Text Editor application on my Mac. I didn’t realize the Rich Text Formatting was throwing things off..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child theme not working for twentyeleven theme’ is closed to new replies.