Free Directory, Listing & Classifieds WordPress Plugin Support Themes ListingHive All my custom code removed automatically

All my custom code removed automatically

  • Author
    Posts
  • taranbatra

    Hi,

    I don’t know what happened and how it happened but on June 4, 2020 but all my custom code has been automatically removed and theme has been completely reset to default.

    Maybe there was an automatic theme update which replaced all my customizations.

    It has resulted in removal of my Google analytics, ads, etc. Can you please help me understand how this happened how it can be prevented in the future?

    taranbatra

    I have to make all the changes again to my entire theme, this is really bad

    ihordeveloper

    Please let me know how you stored these custom code snippets, you should never store them within the HivePress or ListingHive directories (this is also the case for any WordPress theme or plugin) because WordPress overrides these directories on update.

    You can create a child theme for ListingHive and add customizations to the child theme’s functions.php file https://wordpress.org/plugins/child-theme-generator/ or try using this plugin https://wordpress.org/plugins/code-snippets/, then customizations will be safe from updates. Also, please consider setting up backups for your site, maybe your hosting provider offers backups or you can use this plugin https://wordpress.org/plugins/backupwordpress/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.