1

I'm developing a blog. I'm using a free theme, and I've made a lot of changes, from style to scripts. I update my theme from version 1.02 to 1.03, and all my changes have been deleted. I didn't know that updating themes delete the changes.

There's a solution to rollback to old version theme with my changes included?

closed as off-topic by Jacob Peattie, Howdy_McGee Feb 22 at 5:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?" – Jacob Peattie, Howdy_McGee
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    There is only one solution: use your backup. And next time build a child theme. :) – fuxia Feb 20 at 9:47
0

You should never (almost) modify free/premium themes directly. Beeing able to update themes is crucial for security and compatibility reasons.

If you make any changes to the theme directly, then all these changes will get lost after update and you'll have to make them again and again.

On the other hand WordPress allows you to create Child Themes and that is the recommended way of modifying other themes.

So if your changes are lost after update, then you should:

  1. Get backup of your previous, modified theme.
  2. Get all your changes from that theme.
  3. Create your child theme and use it to make your changes based on new version of that theme.

Not the answer you're looking for? Browse other questions tagged or ask your own question.