WordPress.org

Ready to get started?Download WordPress

Forums

Does it matter what order you put changes in the child theme style sheet? (5 posts)

  1. Little Laura
    Member
    Posted 10 months ago #

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

    Thank you...

  2. esmi
    Forum Moderator
    Posted 10 months ago #

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

  3. Little Laura
    Member
    Posted 10 months ago #

    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!

  4. leejosepho
    Member
    Posted 10 months ago #

    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.

  5. Little Laura
    Member
    Posted 9 months ago #

    Great suggestion; thank you!

Reply

You must log in to post.

About this Topic