WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] Stylesheet deleted on update (5 posts)

  1. PoMa
    Member
    Posted 1 year ago #

    Well it looks like every time i update plugin my custom stylesheet in /wp-content/plugins/wp-members/css/ is deleted.

    Maybe it is possible to keep the stylesheet on update? or solution is just to move custom stylesheet outside the plugin?

    http://wordpress.org/extend/plugins/wp-members/

  2. PoMa
    Member
    Posted 1 year ago #

    And same with translation - i have my custom translation files that are deleted on every update, shouldn't they be left alone and not deleted on update?

  3. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    You shouldn't be storing customized stylesheets (or any customizations) within the plugin's folder structure for the exact reason that your customizations will be overwritten when you update.

    From the Users Guide section on Customizing Forms:

    Once you have created a custom stylesheet, you will need to store it somewhere. It is not recommended that you store it in the plugin folder structure as this may be overwritten in the event of an upgrade.

    Yes, there is a way to store your stylesheet outside the plugin's folder structure. In fact, there are two. On that same Users Guide page referenced above, review the following:

    • Specify custom stylesheet location
    • Load the stylesheet using wp_enqueue_scripts

    As for the customized translation file, there is not a way to load that from outside the folder structure. You should keep a copy of that locally so that you reload it when you update.

  4. PoMa
    Member
    Posted 1 year ago #

    Hey, Chad, thank your for your answer!

  5. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    No problem - hope it helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic