[Resolved] Files Deleted After Update

Home Forums Support [Resolved] Files Deleted After Update

Home Forums Support Files Deleted After Update

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #190719
    Edgars

    Hello,

    Just updated Generatepress theme and all custom files are deleted from /wp-content/themes/generatepress, so i lost all my work….. how to secure from this in the future? I’m using “Custom Post Type UI” plugin to create a custom pages.

    #190797
    Tom
    Lead Developer
    Lead Developer

    Ugh I’m sorry to hear that. It’s super important not to make any changes to things that will be updated (plugins, themes, WordPress itself) as the WP update process deletes the old version and installs the new version.

    If you’re adding snippets of CSS and PHP, these articles should help:
    https://generatepress.com/knowledgebase/adding-css/
    https://generatepress.com/knowledgebase/adding-php-functions/

    If you’re adding custom post templates etc.. you should create a child theme which will hold all of your changes.

    Then you can update the main theme without touching the child theme.

    #190978
    Edgars

    Just watched a few How-TO videos and learned how to create a child theme. Thanks!

    #191091
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.