Forums

Blog reset itself to the default version - lost all my coding (6 posts)

  1. d3lilley
    Member
    Posted 2 years ago #

    I created the blog with the wordpress classic 1.5. I completely customized it and it took me a very long time to change it. Well now the posts and links and everything are still in the blog, but my custom design is completely gone. I went into the code editor, and all my code is gone. I did not save my code anywhere, and if I can not figure this out, I am going to have to spend hours re creating it. Any ideas? Please help. The blog is at http://www.fortheotherwoman.com/blog

  2. stvwlf
    Member
    Posted 2 years ago #

    Did you by any chance recently update to WordPress 2.8.5? When you are using either the Default theme or the Classic theme, WP will load the latest versions of those two themes over any existing version, as part of the update.

    It is necessary, when you are modifying the Classic theme, to rename it to another theme and create a different theme folder for it, to prevent exactly what I just described.

    Now, as to how you can recover your old theme... Contact your webhost and see if its possible for them to grab the classic folder out of wp-content from your site, from one of their recent backups, made before the upgrade.

    Most hosts keep a backup from last night and also a once a week backup.

    This is also a good reason to start backing up your theme files when you change them, keeping a copy on your computer at home or work.

  3. d3lilley
    Member
    Posted 2 years ago #

    I will start backing up all my files. Thank you so much. My host for the website is host gator, so should I email the host gator support and ask them if they have a backed up folder?

  4. stvwlf
    Member
    Posted 2 years ago #

    HostGator does indeed keep backups. However they might want to restore your entire web installation. Ask them if its possible to just get a opy of the one folder that you need. And do it quickly, as backups get replaced with newer ones all the time.

  5. d3lilley
    Member
    Posted 2 years ago #

    I restored it thank you so much. How do I rename it and create a different theme folder for it? I want to prevent this from happening again.
    Thank you so much

  6. stvwlf
    Member
    Posted 2 years ago #

    Hi
    Good news!

    Open the theme stylesheet. At the very top, change the name of the theme from WordPress Classic to something related to your site. Feel free to change any of the other info there also. Then save the file.

    Using FTP or the file manager in your web hosting control panel, change the name of the folder that the theme is in from classic to something else - your site name is a good choice.

    Since WP can no longer find your theme where its looking for it (in the classic folder) you need to reset the theme. Go to the WP admin area, under Appearances. You will see the screen shot of the classic theme there twice. One of them will have your new theme name next to it - make that the active theme. Then go to your homepage, refresh, and make sure this change worked.

    If you have any URL's anywhere in posts or in your theme that include the old folder url of /wp-content/themes/classic/ those links will now be broken and have to be updated. Other than that possiblity, everything else should work without any issues.

    You can make a screenshot of your theme and replace the screenshot file in your new custom theme folder. That way your theme image will appear on the Appearances page when you go there. The classic theme screenshot is 300 wide x 225 pixels.

Topic Closed

This topic has been closed to new replies.

About this Topic