Im on version 4.6 and want to update

Posted in: Newsmag
Post count: 24

Hello,

I never updated the theme version, and right now im on version 4.6.
But now I wanted to change from php 7.3 to php 7.4

But i read that I need to make sure that my theme version is compatible with php 7.4

So now I have 4 questions:

1. Is newsmag 4.6 compatible with php 7.4?

2. I remember to read, that when I update a theme that maybe some custom code get lost.
Where should I add custom code so it dosent dissaper when I updated a theme and where should be custom code, so I can check if there is something?

3. What is the best way to update a theme for a livewebsite? I know there is this article:
https://forum.tagdiv.com/newsmag-how-to-update-the-theme/

Would you recomment Way “c” via the envato toolkit?

4. Is it dangerous to directly update from version 4.6 to the newest version?

Thank you

Post count: 35449

Hi,

1. Now I can not say that it will work or not, I do not know this, because when Newsmag v4.6 was released I do not know if it was php 7.2. Most of the time, you can use an old version with a new php version, but if that php version has some changes in structure

2. Yes, if you set some custom code in theme files, this will be lost when you’ll make the theme update, but in most cases these changes can be se in a child theme. Also the settings from theme panel are set in database and these should be saved during the theme update.

3. You can use any of these methods, but in this case the best way is to use the method B (Update the theme via FTP).

4. Normal yes, it can appear some problems if you update an old theme to the last version, for this I recommend to make first the update on sub-domain, staging or localhost and only after you see that there are no problems to update the live website.

Let me know the results!
Thank you!

Post count: 24

Is there a way to get the custome code not lost?

For example what is with the code thats added under Apperance -> Custom CSS:
http://prntscr.com/vc7fl5

Or in the plugin “Snippets”

Will this get lost?

Post count: 35449

Hi ChampLife,
Normal the custom css that you have set here https://prnt.sc/vc7fl5 should not be lost, but to be sure, you can move that code from there in theme panel> custom code> custom css.
Unfortunately I do not know what to say about the code set in “Snippets” plugin, normal if the code is not set in theme/plugins files, then this is saved in database and should not be lost when you update the theme or plugins. But just in case, please make first a full backup.
Thank you!

Post count: 24

Okay I understand, and what is with translations I made in translation Plugins like Loco Translate? Will this get lost?

Post count: 35449

Hi,
If these translations were set in theme panel, here -> https://i.imgur.com/904dCUt.png but if you made the translation in theme/plugin files, then all these changes will be lost.
Thank you for your understanding!

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