Support » Themes and Templates » Does it matter what order you put changes in the child theme style sheet?

  • Little Laura

    (@little-laura)


    Of course, all below the @import url(‘../twentytwelve/style.css’); line, but after that, does it matter the order?

    Thank you…

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

    (@esmi)

    Forum Moderator

    Yes – the order does matter. Try reviewing:
    CSS Tutorials
    Learning CSS

    Little Laura

    (@little-laura)

    Thanks Esmi; I’ve been working through the W3School’s excellent tutorials. From what I’ve been able to pick out, the best order is:

    body
    headings
    paragraph

    I plan to change my tab style, (hopefully!), and delete unwanted elements, eg search boxes, certain sidebars and so on.

    Would I just put those changes below any of the above changes I’ve made on my child theme style sheet?

    Many thanks!

    leejosepho

    (@leejosepho)

    I plan to change my tab style, (hopefully!), and delete unwanted elements, eg search boxes, certain sidebars and so on.

    If you are going to make a great number of serious changes, you might just begin with Twenty Twelve’s entire style.css in your Child Theme to avoid grinding and wheel spinning while WordPress applies your sheet to Twenty Twelve’s to sort that all out. By adding the Child Theme’s template line to a copy of Twenty Twelve’s style.css and *not* using the @import line, your Child Sheet will be in complete control and will be the only one used. But if you do not want to do that, you might at least put your sheet side-by-side with Twenty Twelve’s and even copy some of the comment lines over as sectional markers and keep everything in the same order as Twenty Twelve already has things.

    Little Laura

    (@little-laura)

    Great suggestion; thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does it matter what order you put changes in the child theme style sheet?’ is closed to new replies.