• Resolved katiecoleslaw

    (@katiecoleslaw)


    Hi,

    Apologies for the basic question, but.. my child theme, when activated, keeps coming back with this: This child theme requires its parent theme, Twenty Ten.

    I’ve made the folder in themes, the style.css file, and it still doesn’t work. What am I doing wrong?

    My style.css looks like this:

    /*
    Theme Name:     Twenty Ten Child
    Template:       twentyten
    
    @import('../twentyten/style.css');
    */

    But my site is coming out like this: https://katiebagley.com/

    Thanks in advance!

Viewing 15 replies - 1 through 15 (of 17 total)
  • You’re missing “url” in the @import line – try this:

    @import url('../twentyten/style.css');

    Thread Starter katiecoleslaw

    (@katiecoleslaw)

    Ok, just added the ‘url’ and it’s still not working :/

    After you change that line of code, you need to switch to another theme and then back again – just a quirky thing.

    Thread Starter katiecoleslaw

    (@katiecoleslaw)

    Still not working! Ahhh, what am I doing wrong?!?!

    Just to make sure – is your file structure correct?

    themes
       twentyten
          style.css (unchanged parent version)
       MyChild
          style.css

    Does your site have any caching enabled?

    Thread Starter katiecoleslaw

    (@katiecoleslaw)

    Yep, I double checked. I looked in the ‘editor’ section and it says there I am taking from the parent’s theme’s css. Hmm.

    It should not be a problem, but you could try changing the file name to all lower case. And try turning off your plugins just in case.

    Thread Starter katiecoleslaw

    (@katiecoleslaw)

    I’m going to try making a child theme for another theme and see if I encounter the same problem

    Thread Starter katiecoleslaw

    (@katiecoleslaw)

    Yeah, tried making a child theme for another theme, Twenty Twelve, and it came up with the same thing: This child theme requires its parent theme

    I think you are being distracted by that message. My own Twenty Twelve Child Theme is just fine, and here is what appears at my Dashboard:

    TwentyTwelve’s child theme built for NoNameYet

    This child theme requires its parent theme, Twenty Twelve.

    That is just a note letting you know of the dependency, not a warning saying something is wrong.

    If you have activated your Child Theme and you site is not looking like it did prior to that, you likely just need to go through your Settings to tell WordPress how you want things in that Child Theme. Also, any widgets you had in place in Twenty Twelve will likely be in the “Inactive Widgets” area at the bottom of your Child Theme’s Dashboard and will have to be re-positioned so WordPress can know where you want them in your Child Theme.

    No, that’s not the problem – as is, the parent CSS is not working either. But I just noticed the problem – sorry for missing it last night – your @import line needs to be outside of/below the comment tag

    */
    @import url('../twentyten/style.css');

    Thread Starter katiecoleslaw

    (@katiecoleslaw)

    Ok, so I did as you said and now it looks like this – katiebagley.com

    It’s almost the same, but with the banner. Am I close??

    Yay! Perfect – so theme settings don’t transfer over to a child theme – so you just need to redo those – then you’re good to go.

    Thread Starter katiecoleslaw

    (@katiecoleslaw)

    What do you mean? I’m so sorry for asking so many questions… Do you mean I just go in and delete the banner?

    Thread Starter katiecoleslaw

    (@katiecoleslaw)

    I’ve done it!!!! Thank you, WPyogi!!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Child theme unable to find its parent theme’ is closed to new replies.