Child theme, style sheet problems (4 posts)

  1. nick_nielsen
    Posted 5 years ago #

    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 ?

  2. Michael
    Forum Moderator
    Posted 5 years ago #

    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.

  3. Chip Bennett
    Theme Review Admin
    Posted 5 years ago #

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

  4. nick_nielsen
    Posted 5 years ago #

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

    I gave up and started rebuilding from scratch.

Topic Closed

This topic has been closed to new replies.

About this Topic