$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Updating my free theme delete all my changes|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Updating my free theme delete all my changes

matteradmin9PV0评论
Closed. This question is off-topic. It is not currently accepting answers.

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?

Closed 6 years ago.

Improve this question

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. This question is off-topic. It is not currently accepting answers.

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?

Closed 6 years ago.

Improve this question

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?

Share Improve this question edited Feb 20, 2019 at 9:56 Krzysiek Dróżdż 25.6k9 gold badges53 silver badges74 bronze badges asked Feb 20, 2019 at 9:46 Bepencil BepencilBepencil Bepencil 111 bronze badge 1
  • 2 There is only one solution: use your backup. And next time build a child theme. :) – fuxia Commented Feb 20, 2019 at 9:47
Add a comment  | 

1 Answer 1

Reset to default 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.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far