• I updated to the latest version with the patch in it. I had some changes in my style.css file. I lost all the changes after the upgrade. Is there a way to prevent this? Does an upgrade overwrite the style.css file even if there might not be changes to the style.css file?
    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Does an upgrade overwrite the style.css file even if there might not be changes to the style.css file?

    Yes. For this reason, it is recommended that you consider creating a child theme for your customisations.

    Thread Starter Inv_Trdr

    (@inv_trdr)

    Thank you. Will consider a child theme in this case. Are they pretty easy to create and use?

    If all you’re doing is customising CSS, they’re very easy to set up. All child themes are as easy to use as their parent theme.

    Thread Starter Inv_Trdr

    (@inv_trdr)

    SO basically I will download the theme again and re-name it and make changes to the new CSS. When I switch to the new theme will all the widgets remain intact as it is almost the same theme.
    Thanks.

    will all the widgets remain intact as it is almost the same theme.

    All of my tests indicate that a child theme will currently retain the parent’s widgets and vice versa.

    Thread Starter Inv_Trdr

    (@inv_trdr)

    Thanks. What about upgrades to WP? Are upgrades done just to the WP core or even the themes? I am using Theme 2010 and why was my theme upgraded as I lost the changes to the style.css file. I thought only the core is usually updated, not the individual themes. Or is Theme 2010 part of the core WP application?

    Will a Theme 2010 child be upgraded when WP goes through it too?

    Thanks.

    2010 is core. Whatever the default theme that comes with WP is, that is considered part of core. So since WP 3.0, 2010 theme has been core.

    As for other themes, sometimes they offer updates, and often they have good reason for updating. But again, if you edited the theme, you would lose your changes. Another good reason to use child themes with any theme for updates, they are always safe

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Losing CSS changes in upgrade.’ is closed to new replies.