• Resolved PoMa

    (@pornomagnatas)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter PoMa

    (@pornomagnatas)

    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?

    Plugin Author Chad Butler

    (@cbutlerjr)

    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.

    Thread Starter PoMa

    (@pornomagnatas)

    Hey, Chad, thank your for your answer!

    Plugin Author Chad Butler

    (@cbutlerjr)

    No problem – hope it helps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stylesheet deleted on update’ is closed to new replies.