WordPress themes are updated periodically, and you will notice this as you work on your website. In general, updating the topic can be very useful, because developers periodically add new functionality, fix bugs and close vulnerabilities. But if you did not just customize the theme, but changed the template, it is better to disable WordPress theme updates. After all, all your changes may disappear and you will have to redo everything all over again. And if you ordered this service from specialists, you will have to pay the money again. The most unpleasant situation occurs when the WordPress theme is updated without your knowledge, automatically (this sometimes happens with free themes). There are three easy ways to turn off WordPress theme updates, and you can easily do it in just a few minutes.
How to disable WordPress theme update in style.css file
In my opinion, this is the easiest way, which takes the least time. I myself use this method and have already become convinced of its effectiveness. To use this method, you must open the Style.css file of your active WordPress theme. You can do this with the help of a file manager on a hosting, or simply open this file in the control panel of the site. The second option is easier and faster. You simply go to the Appearance section and select the Theme Editor tab (see screenshot below). As a rule, by default, the style.css file we need will be opened immediately. If not, you should select it in the right sidebar among many others files.
Next you must find the Version line. Most often it is located at the top of the file, in lines from 5 to 10. For example, in my picture you can see that this is line number 7. To turn off theme updates, you just need to change the version number to a more recent one. For example, I replaced the version of my theme from 1.8.7 to 6.8.7. After that, you should save the change (click on the button “Update file” below. Now, when WordPress will once again check the relevance of the topic, it will always see that there is no more recent version of your WP theme.
In other words, this method does not turn off the topic update completely, but postpones it for a very long time. Given the speed of updating WordPress themes, it can be many years. And you can always change the version to a newer version if you need to make it. And if one day you decide that you need to update your theme in any case (for example, when the additional functionality you need appeared in it), you will again open the style.css file and change the version of the file to the one that comes with a smaller sequence number than the newest in reality. Shortly thereafter, WordPress will show you the opportunity to update the theme in the notification panel.
Disable all WordPress updates with plugins
If your theme is never automatically updated, but you are annoyed by notifications about the need to update a WordPress theme or plug-in versions, you can use the Disable All WordPress Updates plugin. The plugin author is Oliver Schlöbe. This plugin disables WordPress’s system for checking for updates to the plugins and the entire WordPress core. After installing and activating this plugin, you will not see any reminders in the notification panel about the availability of updates.
Another plugin with similar functionality and a good rating is Easy Updates Manager (by Easy Updates Manager Team). This is a plugin with great customization options, and you can disable not only the WordPress theme update, but also the update of the plug-ins and the kernel of this CMS. Also, the plugin allows you to select plugins or themes that can be updated automatically. These are not the only plugins that allow you to disable WordPress theme updates. If you want to try other plugins, better to choose with a good rating and a large number of installations.
Personally, I try not to install plugins on WordPress, which I can do without. In addition, WordPress plugins updates and core updates are really useful for a website. Therefore, when using such plugins, I recommend periodically deactivating them and updating the version of WordPress and your active plugins. This will increase your productivity and make your blog more secure.
How to disable WordPress theme update in functions.php
You can also edit the functions.php file in the file manager of your WordPress hosting or directly in the control panel of the website. You will find this file in the “Appearance” section, in the “Theme Editor” tab. In the English version of the WordPress this file is called Theme Functions and you will find it in the right column with the list of files.
If your hosting does not have a daily automatic backup function (I already wrote on the page “Best web-hosting services for WordPres – how to choose,” that such a function is highly desirable), before editing the functions.php file, I recommend backing up to the hosting manually. Also you can save the original functions.php file on your computer or laptop before edit. Something can always go according to an unfortunate scenario (for example, your site will stop opening). Therefore, you should be able to recover this file and fix the problem. When using the third method, some webmasters notice that the control panel of the site (dashboard) works more slowly.
To turn off WordPress theme updates, you need to add the following code to the functions.php file:
add_filter(‘pre_site_transient_update_themes’,create_function(‘$a’, «return null;»));
Thus, you can use a few simple ways to turn off WordPress theme updates on your website. I hope this information was useful to you and the problem of updating the WP theme will no longer bother you.