When setting up a WordPress site, we often use pre-made WordPress themes. Very often we rename themes in order to represent them as our own products. But it often leads to unpredictable issues. In this article we will tell you why you can’t rename themes.
Be it a premium theme or a free one, like Twenty-Sixteen, they are getting updated by their creators providing some new features or fixing bugs. It is very important to keep your theme up-to-date for maximal compatibility with WordPress and other plugins you might use with your theme.
Most modern themes come with automated update function, that lets you get updates directly from your admin dashboard. If you renamed your theme, this function isn’t available for you anymore, because updates are linked to the particular theme name. Of course, you can download the latest theme package and upload the files via your FTP client (for example via Filezilla program). But very often this option is ignored and you continue using an outdated theme for months until you realize it’s time to update. But it is already too late, because of two possible reasons:
- there is a great difference in the code between your current version and the latest update. Since you haven’t updated for a long time, update may run not that perfect as you expected;
- you might have already edited the theme code with your custom changes, so update will erase them for sure.
So how to go about this problem if you want to rename the theme and still get updates for it?
The one and only solution is to use a CHILD THEME. Each modern theme comes with a child theme. It fully inherits parent theme functionality, it serves for all possible code modifications and it doesn’t require updates. Child theme can be renamed!
If you are going to rename your theme, it is recommended to install the child theme from the start of your work. Follow the next steps:
- Install and activate the parent theme according to its documentation.
- Install and activate the child theme right after that. The child theme comes packaged with the parent one, so you will easily find it. In all Crumina themes it is located in the ‘Child theme’ folder of the theme package. Logical, isn’t it?
3. Open the style.css file of the child theme and rename all fields except ‘Template’ and ‘Text Domain’ fields, since they are linked to the parent theme and must remain with the default names for you could get automated updates.
4. You can also upload your own screenshot instead of the default one.
That’s all! Now your theme is renamed. You can make any code modification in the child theme without touching the original code. You can update the parent theme without worrying for your changes. And the most important thing – automated update function is still available for you.