Test a new theme in WordPress without losing the changes of the previous theme [closed]

5

Hello, I recently created a blog in wordpress, I liked the theme, until a few days ago, but now I'm starting to think that it is not too blogging. I'm using the oblique theme. The blog is already in the air, however, in this theme I have changed a lot in php directly.

I wonder if I install another theme in my wordpress that is already online, if I run the risk of losing what I already have if I want to go back to the previous theme. And if I make changes to test on the new theme, how does it save the changes in the same database, if that will interfere with the previous topic.

Thanks in advance.

    
asked by anonymous 28.12.2015 / 18:27

2 answers

5
  

I would like to know if I install another theme in my wordpress that is already online, if I run the risk of losing what I already have in case I want to go back to the previous theme >

No. WordPress allows you to move between topics without any problem, assuming that it has been developed following the general rules of theme development . What you might "miss" are hardcodes that you made straight into the theme, such as <h1> Meu Blog lindão </h1> , but this is restored when you re-enable your theme.

My advice is to consider child themes when you want to make any changes to a theme, until to keep it consistent with possible updates. Also, themes serve to change the form of display content, not to store it. With that in mind, your development will become more consistent.

    
29.12.2015 / 10:54
3

I will provide 2 methods that I think are appropriate to the question:

First Method: There are several possibilities that can be used in this case, one of which may be the easiest is to use a plugin , there are several plugins for the effect of backups, these plugins will be sent to your email backup your website as it is at the time it is backed up, then if you want to go back to the old theme again just go back to the backup.

Second Method: But the way I advise is not this, since during the process of backups there may be some errors, which can be due to several reasons. I advise a Backup Manual , using the FTP tool, for example the Filezilla FTP program, the FTP features of your website are made available by the hosting provider in your panel of control. Already inside FTP , you can copy all files and save to a folder on your computer, keep that same folder saved. You can then change the theme if you want to go back to the previous page, go back to FTP and delete all the files and restore all the files that were in the backup folder on your computer.

These two methods will save changes to your theme in your backups. when reset it keeps those changes and has nothing of the later theme that you put.

(An extra, if you want to search for some plugins for this subject or other subjects, you can do so at WordPress Plugins ).

I hope I have helped. Best wishes.

    
29.12.2015 / 01:32