Update Template without losing modification

Posted in: Newspaper
Post count: 5

Hi TD Team,

My current theme version is 6.7.2 and updated version is 7.1
How to update my theme version without losing my modification?

Thank you

Post count: 40

Hi, i also want to know about this issue..

Post count: 25

Yes, me too

Post count: 22421

Hi,

It depends on the modification actually. If you edited the theme files, this modification will be lost if you do not back it up. Theme files get replaced on an update. You must create a back-up of your modifications and then re-apply them to the new theme files. There is no update proof way of altering the theme files unfortunately. Not even a child theme is update proof. Any modifications that is made on the theme code will be lost. Settings from the theme panel or custom code added in the panel spots will not be lost as they are kept in the database.

Thank you!

Post count: 25

custom code added in the panel spots will not be lost?how for childtheme update??

Post count: 22421

The custom code in the theme panel will not be lost as it is kept in the database.
The child theme however is an entirely different matter. It may sound complicated now but it’s actually not. The child theme simply feeds a version of the file you can modify. If you update the theme and the files in thee main theme get replaced (and you did not replace anything in the child theme) then you would be feeding the same old files you modified with the old code onto the new theme which requires the new files with the new code. It will not work. You have to look at the changelog and get the list of modified files from there and if the files in your child theme you modified are on that list, after you update, you must replace them as well in the child theme. Otherwise your site will break as you will feed the old code through the child theme. You must re-add the modification on to the new files.
I hope I was explicit enough.
Thank you!

Post count: 25

ohh ok…first update main theme and second update child theme?in my child theme just put the customization function in wp backend theme

Post count: 23312

Hello Balleto,

Please notice that the child theme come bundled with the main theme and you will have to edit that version of child theme (the right child theme folde you will find in Newspaper-tf\code\Newspaper-child). For more infroamtion about child theme suppost, please check our documentation here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks for your understanding!

Post count: 25

ok thx

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.