Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #343855

    Hi there. I have a bunch of styles that I’ve built up in css/custom.css. Now I want to move them to a child theme. Is there some reason I can’t just copy the entire contents of custom.css into the body of the new styles.css? I tried that and the site looks all kinds of broken.

    #344417

    Hi snackd!

    Try adding !important to each of your CSS rules like so,

    a { color: red !important; }

    Go ahead and send us a link and we’ll take a closer look.

    Regards,
    Elliott

    #344966

    Uhhhh, that’s really not a best-practice solution. Plus, I have dozens of rules.

    Anyway, it turns out that it was reading my styles.css, but for some reason not all the theme settings that I had imported. Solution was to make a slight edit to theme settings & resave. Looks perfect now.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘moving styles to child theme, styles & menu are all broken’ is closed to new replies.