Support » Themes and Templates » Child theme, style sheet problems

Child theme, style sheet problems

  • I’m trying to migrate my site to a child theme with twentyten as parent.

    The comments header works – the theme is registered in the dashboard correctly.

    I have put @import(‘../twentyten/style.css’) as recommended.

    However any styles I introduce into my child stylesheet somehow invalidates all the styles – the parent styles no longer work and I am left with basic HTML.

    What am I doing wrong ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael


    Forum Moderator

    where do you add the new styles?

    make sure, this line

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

    ends with a semicolon; and add any new styles below it.

    To add to what alchymyth said: @import rules must come before any other style declarations, or the @import is ignored entirely.

    I did everything as required and double checked it. I usually do before I come here.

    I gave up and started rebuilding from scratch.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child theme, style sheet problems’ is closed to new replies.