• Resolved kricket

    (@kricket)


    I have created a chid theme from the default parent twentyten. However, when I place the @import code (as the first rue of my child stylesheet after the comment out stuff), the twenty ten fails to import into the stylesheet and my child theme remains unstyled. I want to use the child theme so that my style modifications are preserved in the event of a parent theme update.

    Any ideas as to why @import doesn’t work is greatly appreciated.

    Thanks,
    Krikket

Viewing 4 replies - 1 through 4 (of 4 total)
  • when I place the @import code

    what is your code?
    i.e. what is in style.css of your child theme?
    (only the top part to after the @import line)

    Also, can we get a URL for your site?

    Thread Starter kricket

    (@kricket)

    I’ve never experienced a problem using
    @import url("../parenttheme/style.css"); before in any of my other child themes.

    After removing the child theme umpteen times, re-installing it without changes from the first time, clearing the cash, each attempt failed until the last.

    I have no idea why previous attempts failed until the last one given that I made no changes to the styles.cc which only contained the commented out child theme info following immediately by the @import at the beginning of this post. Bizarre!

    Oh well, at least it’s working and I can move on with customizing the site.

    Thanks again, Chip and alchymyth for taking the time to respond.

    Cheers,
    Krikket

    Thread Starter kricket

    (@kricket)

    I made no changes to the styles.cc

    Sorry for the typo. The above line should obviously read style.css

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

The topic ‘child theme @ inform fails to import parent theme’ is closed to new replies.