• I’m starting to delve a little deeper into theme modification and I’m wondering…

    Is there a benefit to addition CSS code directly to the stylesheet file or does adding it to the Additional CSS section of the editor do the same thing? Is there any speed differences, or any other reason I should do one or the other?

    Example in point… I’m creating a custom page template, inside of which I’m creating a new div class so I can modify the content on just that page. Once I’ve done that and I add CSS to modify the class, where should I add the CSS?

    Sorry, I thought I was posting this in the develop wordpress section, not the fixing section

    • This topic was modified 8 years, 4 months ago by Jan Dembowski.
    • This topic was modified 8 years, 4 months ago by stevecorwin.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you are working with an existing theme (not a child theme you’ve created), then the best place for your CSS is in the “additional CSS” thing through the customizer. Why? If you put stuff in style.css and the theme is updated, your changes will be lost. If you’re working in a child theme, then editing the child’s style.css is the way to go, as that won’t be changed if the parent is updated.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you have a Child Theme and are still wondering which to use, I recommend choosing just one so that you don’t have code in multiple places. Which one doesn’t matter.

    • This reply was modified 8 years, 4 months ago by Andrew Nevins.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Style.css or “additional CSS”’ is closed to new replies.