Hello everyone, tell me how to properly perform a topic replacement on a working news portal, I’m interested in the action logic so to speak. We have a site with a total file size of 12 GB (pictures mostly) and 35 MB of database, you need to replace the installed theme with a new one, save the plug-ins, as well as all posts, if necessary. The theme is paid and functional, but it differs in functionality from the installed one, since a lot of things were doped into templates as needed, so just uploading to the folder with themes and pressing the activate button will not work, it will be more accurate, but it will be of little use, it needs to be finished to the desired form. How to do it right? Make a backup of 12 GB and deploy on LAN, or upload to a subdomain, or are there other options? Then the development will take some time, while the site will publish news, they also need to be postponed at the time of production) Tell me how someone sees this task?

  • An exact copy of the combat site as a platform for experiments should be not only in case of a move, it is considered a good form to carry out any changes in the test environment first, and then transfer them to the combat environment. @KAGGDesign wrote you everything correctly, as it is usually done - alenkins

1 answer 1

The presence of posts in the database does not affect the topic. Theme - these are files and their individual settings in the database.

Need to go so. With the help of the Duplicator plugin, make a full backup of the database and images (to see the current state of the site), transfer to the test domain or LAN. Switch the theme, create a child from it and finish the child by comparing it with a combat site. When everything is ready, copy the files of the main and child threads to the combat site and turn on the main one (it can do some initialization) and then the child one. You may have to transfer the settings of the new theme, but this is usually one huge entry in the wp_options table, in which the array of theme settings is serialized. The rest of the base is not necessary to touch. Theme settings can be transferred manually in the admin panel in 5 minutes.

When you switch the combat site to a new topic, all posts will remain, so there are no problems with new posts.

That's all. Now, by the way, I am engaged in an absolutely similar task. Site 26 GB, base 53 MB, 35 plug-ins.

  • Not everything is so smooth, it turns out that 60+ plug-ins are installed, some are disabled, some new plug-ins may be eliminated and simply will not be used, plus some will be added, many of them use data bases and can write to any table. . That is, to catch all the tables in the database where the plugin data is written, let's say hard. It turns out after the end you need to upload this database to the hosting, I'm thinking about what to do with the news that will be published during the development of the site? - Pavel Mucha
  • All posts are written to the wp_posts table? If for example you do this when everything is ready for the site being developed, import the table with posts from the site’s database into the database being developed and then upload the hosting to the hosting site along with the theme and plugins. - Pavel Mucha
  • Yes, what have the plugins. Let them write. No need to throw everything in a heap. Take care of the topic first. Make, transfer, then you will deal with plugins. Separate the flies from the chops, then everything will be smooth. - KAGG Design
  • About the fact that posts are written in wp_posts - this is both true and false. More data is written to wp_post_meta. While there is no complete understanding of how the base is arranged, it is better not to touch it from the word at all. - KAGG Design