This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

questions

  • *****
  • 320 posts
Keep changes on Major releases
« on: January 19, 2023, 08:10:56 PM »
Hello,

I am asking you, for example when I edit functions.php and when a new major release will come, will I lose my changes when doing the update? If the answer is yes, how can I keep my edits on major releases updates?

Thank you,
« Last Edit: January 19, 2023, 08:12:31 PM by questions »

*

MB Themes

Re: Keep changes on Major releases
« Reply #1 on: January 20, 2023, 08:22:02 PM »
Yes it will, for that reason in next version there will be support for custom functions file in theme folder.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Keep changes on Major releases
« Reply #2 on: January 22, 2023, 01:22:12 AM »
Hello,

I am asking you, for example when I edit functions.php and when a new major release will come, will I lose my changes when doing the update? If the answer is yes, how can I keep my edits on major releases updates?

Thank you,

Make a "fake" plugin with only all those custom functions. Simple as that. Takes 5 minutes. Solves the issue forever.


*

MB Themes

Re: Keep changes on Major releases
« Reply #3 on: January 22, 2023, 05:27:29 PM »
Thats solution as well  :)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

questions

  • *****
  • 320 posts
Re: Keep changes on Major releases
« Reply #4 on: January 27, 2023, 04:09:33 PM »
Had this issue in the past, so this is not an option, as lines and code always changes.

Does child-theme works for my situation?

*

MB Themes

Re: Keep changes on Major releases
« Reply #5 on: January 27, 2023, 04:37:01 PM »
Which one please? It's not clear.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

questions

  • *****
  • 320 posts
Re: Keep changes on Major releases
« Reply #6 on: January 29, 2023, 11:16:44 AM »
When upgraded from 8.0 to 8.0.1 to 8.0.2 all my changes that I did in the .php files has been lost.

All of them were saved on an external doc, but when I tried to put them back, found that not all the lines were the same. Your releases came with changed lines and code. So, I was not able to keep all the modifies I did peviously, as I didn’t knew how and where to put the code again, as I had errors, so some of the changes have been lost.

So how can I avoid this? Using the child-theme? I don’t think… as the update goes for it too.

Is there any way to keep my changed code on major release?
« Last Edit: January 29, 2023, 11:20:04 AM by questions »

*

MB Themes

Re: Keep changes on Major releases
« Reply #7 on: January 31, 2023, 08:21:48 PM »
Of course, upgrade rewrite all files it contains, that is essential.
Child theme is not in .zip so it will not be affected, it's not updated.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

questions

  • *****
  • 320 posts
Re: Keep changes on Major releases
« Reply #8 on: February 01, 2023, 10:03:01 AM »
Of course, upgrade rewrite all files it contains, that is essential.
Child theme is not in .zip so it will not be affected, it's not updated.

So my question, is there any way to keep all my modifies on major updates?
As lines and code are also changed from release to release and I did not managed to find their place back as it was before.

Thank you,

Marked as best answer by questions on February 01, 2023, 11:41:57 AM
*

MB Themes

Re: Keep changes on Major releases
« Reply #9 on: February 01, 2023, 11:22:14 AM »
Answer is: use child theme.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots