WordPress.org

Ready to get started?Download WordPress

Forums

PC Custom CSS
[resolved] CSS Not Retained On Deactivation (6 posts)

  1. KimJCastleberry
    Member
    Posted 1 year ago #

    This plugin applies the custom css well.

    However, deactivation and reactivation of the plugin results in a loss of the custom css that was in the css field.

    Something in the way this plugin is storing the custom css is not letting it be retained through a deactivation.

    http://wordpress.org/extend/plugins/pc-custom-css/

  2. jesseali
    Member
    Posted 1 year ago #

    .... was checking for a plugin conflict... deactivated, and lost everything :/

    I have a backup in my hosting account, but even upon using the old database, the CSS is still missing :(

    Any ideas how to get this back with my regular old cPanel backup? since the CSS file is now dynamically created, I guess there is no place to find and restore it?

  3. Peter Coughlin
    Member
    Plugin Author

    Posted 1 year ago #

    Yeah, it used to be considered good practice for plugins to clean up after themselves and remove settings on deactivation.. but this can be awkward for anyone who wants to deativate a plugin temporarily.

    I've updated this plugin so that it does not remove any information when you deactivate it. It will remove all info when you delete it. I think that's a better way of doing things :-)

    @jesseali - I answered your question in the other post - hope you got that sorted!

    I'll mark this as resolved..

  4. jesseali
    Member
    Posted 1 year ago #

    other post?

  5. Peter Coughlin
    Member
    Plugin Author

    Posted 1 year ago #

    In the other support thread you commented in..

    I basically said you should be able to find the CSS code for the plugin in the wp_options table in the pc_custom_css option..

  6. jesseali
    Member
    Posted 1 year ago #

    oh, awesome. I did not remember that one, sorry about that! Thanks for the reply!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic