Free Directory, Listing & Classifieds WordPress Plugin › Support › Themes › ListingHive › All my custom code removed automatically
All my custom code removed automatically
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?
I have to make all the changes again to my entire theme, this is really badihor4 months, 1 week agodeveloper
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/
You must be logged in to reply to this topic.