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

  1. PoMa
    Posted 3 years 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?


  2. PoMa
    Posted 3 years 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
    Plugin Author

    Posted 3 years 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
    Posted 3 years ago #

    Hey, Chad, thank your for your answer!

  5. Chad Butler
    Plugin Author

    Posted 3 years ago #

    No problem - hope it helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic