• Resolved 7billionbuddhas

    (@7billionbuddhas)


    I had some trouble yesterday after activating a feature in Jetpack – Gallery. Suddenly, I got 301 Redirect errors. I couldn’t access the site anymore. In a panic I went into the site via FTP and deleted the Jetpack plugin folder. I thought that was what triggered the problem. Then to make it worse my IP was blocked by the host…it was a bad Friday!

    I resolved the IP issues and was able to restore the site after deleting the cookies for the site. But, now that I’ve deleted the Jetpack plugin – I’ve lost all the customized CSS I entered in the “Edit CSS”.

    Does anyone know of a way to restore this? Where are these files stored? within the Jetpack plugin folder? Or elsewhere, I hope. I haven’t tried to reinstall the Jetpack plugin – I’m afraid it may overwrite anything that may still be there.

    Any ideas?
    Thanks!

    http://wordpress.org/extend/plugins/jetpack/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    now that I’ve deleted the Jetpack plugin – I’ve lost all the customized CSS I entered in the “Edit CSS”.

    If you reactivate Jetpack and the Custom CSS module, your customizations will be back.

    Where are these files stored? within the Jetpack plugin folder?

    Your custom CSS changes are stored in the wp_options table of your database. Each custom CSS revision is stored as a post using the custom CSS post type. As a result, your changes won’t disappear if the jetpack plugin is deleted from the plugins folder.

    Thread Starter 7billionbuddhas

    (@7billionbuddhas)

    Thanks! Such a relief that I didn’t lose my work. 🙂

    hi.

    this actually just happened to me. I disabled jet pack and since then all what i did on my custom css is gone.

    it was under “appearance”/”edit css”

    Could anyone tell me how can i bring the css back even if i don’t reinstall jet pack?

    I am not sure how to proceed.

    thanks

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Could anyone tell me how can i bring the css back even if i don’t reinstall jet pack?

    As I mentioned above, the CSS code is stored in your database. Each Custom CSS revision is stored as a new post, so you could access all revisions of your code by accessing your database.

    Another alternative would be to enable Jetpack again. Once the Custom CSS module is active again you can copy the CSS from there, before to disable jetpack and paste this custom CSS in your theme stylesheet for example.

    Yes but I didn’t know where to find it in the database.
    Re-enabling jetpack didn’t bring it back.

    Thank you

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    I didn’t know where to find it in the database.

    Your CSS changes are stored in the *_posts table, along your Posts, Pages, and other Custom Post Types.

    Custom CSS revisions use the safecss post_type and post_title, so you should be able to find them by filtering all posts with this Post title.

    Re-enabling jetpack didn’t bring it back.

    You will need to connect Jetpack to your WordPress.com account for the Custom CSS editor to appear again. Once you have done so, you can access your previous CSS revisions thanks to the Revisions links in the bottom right corner:
    http://i.wpne.ws/QY42

    Thanks a lot. That is probably going to help me finding it. Greetings.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to restore Edit CSS if Jetpack plugin was deleted?’ is closed to new replies.