Crap! WP Theme Update Wiped Out Changes

13 replies
Don't lecture me. I KNOW I should have used a child theme but the theme I was using, Custom Community Pro, has a bug and the child theme wasn't working right.

So last night, I had a brain fart and upgraded my theme. About 3 seconds later, I realized I'd overwritten my custom CSS file. I do WP backups but only the database.

Is there ANY way to get my custom CSS file back? I use hostgator, can they restore a file? I've checked archive.org but no joy there.

Any ideas?
#crap #theme #update #wiped
  • Profile picture of the author Kingfish85
    Originally Posted by Bruce Wedding View Post

    Don't lecture me. I KNOW I should have used a child theme but the theme I was using, Custom Community Pro, has a bug and the child theme wasn't working right.

    So last night, I had a brain fart and upgraded my theme. About 3 seconds later, I realized I'd overwritten my custom CSS file. I do WP backups but only the database.

    Is there ANY way to get my custom CSS file back? I use hostgator, can they restore a file? I've checked archive.org but no joy there.

    Any ideas?
    You can ask them as I believe they do weekly backups. you may have to pay a fee however.

    It's also a good idea to keep local backups so you're covered when something like this happens.
    Signature

    |~| VeeroTech Hosting - sales @ veerotech.net
    |~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
    |~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
    |~| Visit us @veerotech Facebook - Twitter - LinkedIn

    {{ DiscussionBoard.errors[7689749].message }}
  • Profile picture of the author jeffreyhuan
    You can contact HostGator to see if they keep any backup copy before your theme updating.

    I did this once with Bluehost and they restored the file for me.
    {{ DiscussionBoard.errors[7689753].message }}
  • Profile picture of the author thester
    I did exactly the same with the latest wp update also, I contacted my host (webhostbuzz) but was unable to restore anything and they said:
    As we can see the size of the index.php file of your theme thesis_184 is NULL (/home/mysite/public_html/wp-content/themes/thesis_184/index.php). We recommend you to try to re-upload your theme.

    I still haven't done anything about it yet though as the sites are quite new with no traffic yet anyway and I have old wp-twin back ups I was maybe going to re-install them.

    Oh well, it is a great big pain in the ass and was my fault I suppose (Rookie Error) and I hope you also fix it easily :-)
    {{ DiscussionBoard.errors[7689788].message }}
  • Profile picture of the author John Romaine
    Roll back.

    No big deal.
    Signature

    BS free SEO services, training and advice - SEO Point

    {{ DiscussionBoard.errors[7689871].message }}
    • Profile picture of the author Bruce Wedding
      Originally Posted by John Romaine View Post

      Roll back.

      No big deal.
      Where is that option, John?
      {{ DiscussionBoard.errors[7690019].message }}
      • Profile picture of the author John Romaine
        Originally Posted by Bruce Wedding View Post

        Where is that option, John?
        Bruce, what I meant was, contact your host and have them restore your website to its previous state, before you made any changes.

        Rule #1 - Always keep backups and NEVER work with originals.
        Signature

        BS free SEO services, training and advice - SEO Point

        {{ DiscussionBoard.errors[7691543].message }}
  • Profile picture of the author cheaporganicSEO
    I'm curious about the roll back function. I have not seen that option in any theme or plugin. Please let us know what you mean. And yes, you should be using a child theme
    {{ DiscussionBoard.errors[7690080].message }}
    • Profile picture of the author Bruce Wedding
      Originally Posted by cheaporganicSEO View Post

      I'm curious about the roll back function. I have not seen that option in any theme or plugin. Please let us know what you mean. And yes, you should be using a child theme
      There is no rollback for a theme upgrade. There's not even a good rollback for a WP update, especially if it changes the database. If Hostgator can't restore, I'll have to rewrite it from scratch.
      {{ DiscussionBoard.errors[7690198].message }}
      • Profile picture of the author ExRat
        Hi Bruce,

        Unless someone comes along with the answer, I would talk to your host and ask them the question. As you probably know, HG has livehelp.

        Were the tweaks extensive?

        Did you use a plugin to do the database backup - if not, how did you do it? Are you 100% sure the backup didn't also contain the theme/CSS file?

        On the bright side, if you have to do them again by hand, it will probably stick in your head next time

        Just keep the altered files in a backup folder, double backup that file and if you update the theme again and drop the old CSS file in, don't forget to check for problems as the new version of the theme may not work properly with the old CSS file.
        Signature


        Roger Davis

        {{ DiscussionBoard.errors[7690494].message }}
        • Profile picture of the author Bruce Wedding
          Originally Posted by ExRat View Post

          Hi Bruce,

          Were the tweaks extensive?
          Hi Roger,

          Not really. About 6 CSS classes as far as I can remember. I can find all the names looking at my pages and posts and that should jog my memory.

          Originally Posted by ExRat View Post

          Did you use a plugin to do the database backup - if not, how did you do it? Are you 100% sure the backup didn't also contain the theme/CSS file?

          On the bright side, if you have to do them again by hand, it will probably stick in your head next time
          Yep, it was a plugin and I already looked. Nothing but an SQL file in there. Anyway, thanks for the optimistic outlook

          Originally Posted by ExRat View Post

          Just keep the altered files in a backup folder, double backup that file and if you update the theme again and drop the old CSS file in, don't forget to check for problems as the new version of the theme may not work properly with the old CSS file.
          Actually, I have this nagging feeling I DID back the CSS file up somewhere. I'll be looking tomorrow. I didn't see it on my hard drive but I'm hoping I saved it on my host site somewhere safe.
          {{ DiscussionBoard.errors[7690551].message }}
          • Profile picture of the author ExRat
            Hi Bruce,

            Well if you end up doing it yourself and you can remember which part of the theme was altered - the way I did it when I first created a child theme was to use a firefox plugin (I think it's the one called 'web developer') - you just click on the element of the theme that you want to alter (the main font, or the header etc) and it shows you which line(s) of the CSS stylesheet contains the rule(s) for that element, so you can quickly go there and make the changes.

            This is great for anyone who isn't CSS conversant yet, because -

            a) it gets the job done quickly

            b) you start learning CSS as you go along

            c) you can mess around with the CSS values and experiment in a non-destructive manner, which again helps you to learn new CSS tricks, plus it helps you to find new design ideas

            .........

            Actually, I have this nagging feeling I DID back the CSS file up somewhere
            You probably already know this, but just as a reminder, if it is on your PC and you don't have a PC full of stylesheets, just use the windows search function (if you are using windows) and put part of the name (EG style, or .css) into the search and that should give you a list of any files on your PC with that word in the title.

            The difficult part might be if you have more than one stylesheet, working out which is which - but if you keep them in folders, and the folder is called 'my ABC theme tweaks'.....
            Signature


            Roger Davis

            {{ DiscussionBoard.errors[7690973].message }}
            • Profile picture of the author Bruce Wedding
              Originally Posted by ExRat View Post

              Well if you end up doing it yourself and you can remember which part of the theme was altered - the way I did it when I first created a child theme was to use a firefox plugin (I think it's the one called 'web developer') - you just click on the element of the theme that you want to alter (the main font, or the header etc) and it shows you which line(s) of the CSS stylesheet contains the rule(s) for that element, so you can quickly go there and make the changes.
              Yep, I have the same plugin and it is awesome. I'm familiar with CSS basics and wrote all the original changes myself. In general, they were just div classes to narrow my content but some had fancy rounded corners with shadows. That will be a bit tougher to duplicate.

              Originally Posted by ExRat View Post

              You probably already know this, but just as a reminder, if it is on your PC and you don't have a PC full of stylesheets, just use the windows search function (if you are using windows) and put part of the name (EG style, or .css) into the search and that should give you a list of any files on your PC with that word in the title.
              Actually, I am a huge fan of a free search tool called Everything. It indexes every file on your computer and allows you to search for *.css or styles.css whatever and it INSTANTLY lists all of them in a sortable by name, date, sizee view. You want to find every Photoshop file on your computer? *.psd and there they are in a blink.

              Much faster than Windows search. You can get it free here:
              Everything Search Engine
              {{ DiscussionBoard.errors[7691890].message }}
  • Profile picture of the author Steve Faber
    I hope it's not already too late, but they typically BU on Sunday. You need to contact them ASAP to see if they havbe already overwritten with the new one.
    Signature
    For Killer Marketing Tips that Will Grow Your Business Follow Me on Twitter Now
    After all, you're probably following a few hundred people already that aren't doing squat for you.....
    {{ DiscussionBoard.errors[7690533].message }}

Trending Topics