Jetpack by WordPress.com
[resolved] Jetpack does not keep custom CSS if theme is changed? (5 posts)

  1. Sushubh
    Posted 2 years ago #

    I lost my custom CSS when I changed theme. I realize that custom CSS is stored in the database. But I have posts revision feature disabled. Would there still be a copy somewhere? Reverting back to the original theme did not restore the custom CSS.


  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 2 years ago #

    Could you try to enable Post Revisions again, and check the sidebar under Appearance > Edit CSS to see if the last CSS revision appears there?

    If it doesn't help, could you let me know your site URL? I might be able to grab a cached version of your custom CSS code.


  3. Sushubh
    Posted 2 years ago #

    Enabled Post Revision. Found the Custom CSS in browser cache. Saved the day for myself. Now I am keeping three revisions for all forms of content. Thanks!

  4. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 2 years ago #


    Instead of completely disabling Post Revisions, and if you're worried about the space all post revisions can take in your database, you could choose to keep them on, but limit the number of revisions saved for each post:

    That should help!

  5. Sushubh
    Posted 2 years ago #

    Yes. I have it set at 3 revisions which should be safe enough. I usually disable the feature because of the jump in post ids.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic