1.3 update to 2.3.5

Posted in: Newsmag
Post count: 19

Is it possible to update theme from 1.3 to version 2.3.5 on live web with some post enchancement with custom fileds – http://www.antenazadar.hr

loop-single.php changes to stay after update

<header>
<span class=”td-nadnaslov”>
<?php
$source_post = get_post_meta($post->ID, ‘credit’, true);
if($source_post !== ”) { echo $source_post; }
?>
</span>
<?php echo $td_mod_single->get_title();?>

<div class=”meta-info”>
<?php echo $td_mod_single->get_author();?>
<?php
$source_post = get_post_meta($post->ID, ‘fotograf’, true);
if($source_post !== ”) {
echo ‘<span>Autor / izvor fotografije: ‘ . $source_post . ‘</span>’;
}
?></br>
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
<span class=”date”>Objavljeno: <?php echo get_the_date(); ?></span> – Uređivano: <?php the_modified_date(‘d.m.Y. H:i’); ?>
</div>

  • This topic was modified 10 years by fpavic.
Post count: 9544

You would need to make your changes to the new files then upgrade, then make adjustments as needed post update. If using child theme, be sure to check the changelogs for files you would need to update again.

Post count: 19

Should I upgrade by uploading the newest files or to install new theme version to new folder and change theme in WP Themes settings?

Post count: 9544

Unless you changed the name of the theme in style.css and the theme folder name, you can’t install two versions of same theme and switch —

you would backup old files, custom css, dbase; delete old theme folder, upload new one, and then login to check anything like sidebar widgets and homepage.

See the theme docs on how to upgrade also 🙂

Post count: 19

So, I should do this:

0. Create backup
1. Activate meintenance mode
2. Do not deactivate any plugins
3. Delete current theme folder
4. Apply custom changes to new files
5. Upload new theme folder (same name)
6. Check site
7. Activate it

Post count: 6535

Hi

Because you’re using a very old version of the theme the update process could be a bit tricky.
First make sure you do a full backup to the database and your current wp install: https://codex.wordpress.org/WordPress_Backups in case something goes wrong you can allays get back to the previous version. Also consider the steps I’ve provide below:

– setup a maintenance mode and you can use a plugin for that.
– empty all caches/purge files if you also use CDN host then disable any services of this type until you switch to the new theme
– disable all plugins
– install the theme then install the required plugins: https://forum.tagdiv.com/newsmag-how-to-update-the-theme/
– switch back the rest of the plugins and make sure that they work fine with the theme, you can check this by enabling the plugins one by one then test the site.

Regarding your customizations these will be lost during the update process so you have to re-add them again in theme files or in child theme. Also make sure that the customizations are still compatible with the new theme because many files are changed and also many functions so there is a chance to appear some conflicts.
You also will need to redo your pages because in a previous version the shortcodes for blocks has been changed so they won’t work anymore. Just edit the page with Visual Composer, delete the existent blocks then re-add them again. Such that the new shortcodes will be generated and the page should be displayed fine.
Let us know how it goes and if you need further instructions please provide more details.

Thanks!

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