I can’t seem to upgrade my custom theme. Whenever I try to uploaded a new package, all I get is:
Unpacking the packageâ¦
Installing the themeâ¦
Destination folder
already exists. /wp-content/themes/THEMENAME/
Theme install failed.
I’ve searched and all I can find is people recommending upgrading over FTP. Sadly, I don’t have FTP access right now, but also using FTP appears to be a dirty solution. I can obviously delete and re-install the theme, but that seems very dirty, too.
How can I update a theme through the Dashboard?
It fails because there is already a theme with that name on the server.
So the obvious solution is to remove the theme before you upload the new version.
If you’re wanting to use an update mechanism like the theme repo, but on a custom theme, there are udpater classes you can add, such as this one:
https://github.com/UCF/Theme-Updater
That particular one uses github as its source, but there are various alternatives that use other sources
A few notes for anyone else with similar issues, pitfalls of using the backend to install and manage code:
Similar if not identical issues apply to plugins also.