WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Child theme not working for twentyeleven theme (3 posts)

  1. rarefires
    Member
    Posted 2 years ago #

    Hello all,

    I am using WordPress 3.2, and have been trying to create a child theme for my "twentyeleven" theme at http://www.ridgeblog.ca . 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: http://www.ridgeblog.ca
    Description: Child theme for the twentyeleven theme
    Author: Greg Amos
    Author URI: http://www.ridgeblog.ca
    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?

  2. Digital Raindrops
    Member
    Posted 2 years ago #

    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.

    HTH

    David

  3. rarefires
    Member
    Posted 2 years ago #

    Hello,

    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..

Topic Closed

This topic has been closed to new replies.

About this Topic