Customizations that are lost during a theme updateFor example, you may have added code to your theme's functions.php file or CSS styles to your theme's stylesheet file (style.css ). These changes will be lost because the files will be overwritten when your theme is updated.
The same thing happens if you have made changes to any of your theme's templates , such as index.php, header.php and footer.php. These files will also be overwritten and your changes will be lost.
However, if you add code to your WordPress website using a Code Snippets plugin, these customizations will not be lost.
That's why we always recommend WPCode . It lets you easily add custom code directly from your WordPress dashboard. These code snippets run as if they were in your theme files, but future-proof your customizations.
WPCode Pro version
WPCode also lets you manage all your custom code list of canada cell phone number from one central screen, so you never have to worry about losing a snippet or making a mistake.
You can start with the free version of WPCode to future-proof your website customizations. For more details, check out this guide on how to easily add custom code in WordPress .
Now that we know which changes are deleted, let's look at how to preserve them when a theme is updated.
Method 1: Using a Code Snippets Plugin to Preserve Customizations (Recommended)
If you have added custom code to your WordPress theme files, the easiest way to save it is to move it to the WPCode plugin before updating your theme .
What you will lose are any changes you made directly to your theme files
-
- Posts: 679
- Joined: Sat Dec 21, 2024 5:43 am