• Resolved IBIT

    (@ibit)


    My first attempt to create a child theme is failing. Successfully created the folder and uploaded the file via FTP, but WP lists it as a broken theme. The reason: “Stylesheet is missing.” I tried to copy the existing stylesheet created for the Twenty Twelve parent theme into the child theme’s file, but that clearly isn’t working.

    How can I make this work?

    Thanks.

    https://imblacknitravel.com

Viewing 8 replies - 16 through 23 (of 23 total)
  • me: That file must be named style.css, and it must be placed inside its own folder

    Rev. V.:There should be no css folder. If you have style.css in a folder, that would be the problem

    Yes, I had worded that poorly. style.css needs to be in the Child Theme folder.

    Thread Starter IBIT

    (@ibit)

    YOU DID IT, leejosepho! I followed your advice, made my own slight modification, and I have a working child theme now! Stripping down the header is what did it for me. There are a few things in it I need to clean up, but I couldn’t care less about that.

    SINCERCEST GRATITUDE TO YOU ALL. WP IS THE BEST, and it’s this community that makes it so!

    Cool beans.

    Glad you got it, but wonder what the problem is from your original attempt? Everything looks good… unless, the only thing I could see to be picky about is:

    Theme Name:Twenty Twelve Child

    I wonder if it really is picky about the space after the colon? I may have to play around and test that theory

    Thread Starter IBIT

    (@ibit)

    I would be grateful if you did, Rev, because it drove me nuts. I need to learn what I did wrong before I try this in the future.

    I tried to copy the existing stylesheet created for the Twenty Twelve parent theme into the child theme’s file

    You can do that as long as you change the header for the style.css to what it must be for a Child Theme, and then WordPress reads your sheet first and checks it against the one in the Parent to be sure nothing gets missed on the way to the screen.

    I wonder if it really is picky about the space after the colon? I may have to play around and test that theory

    Could be, and I do know it just rejected one of mine (saying the Parent was missing) when I had TwentyTwelve where twentytwelve should have appeared as the name for its Template.

    @ibit: I named my Child Theme nny2012child and activated it, and then cloned (download) it and made nny2012trial (and then uploaded that one) as the place I can make changes and test things without losing what I already have if something might go horribly wrong. But if you might decide to do something like that, remember that the two headers are different when copying one into the other! I made that mess for myself twice today.

    Wow boss… I got nothing!

    I just c/p your initial code above into a blank style.css file, threw that into a folder and zipped it. It installed perfectly onto my test site.

    @keesiemeijer: You’re the Master in the house. Thank you, Brother!

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Twenty Twelve child theme broken’ is closed to new replies.