Updating Ghost to latest version overwrites casper theme custom changes

I made some custom changes to the Casper theme.

After I update ghost to the latest version, the custom changes were overwritten with the original Casper theme. How can I update ghost such that custom changes can be retained? I updated ghost by running the command “ghost update”

It is inconvenient to make custom changes whenever a new update is done.

Only the core casper directory is overwritten when upgrading so it sounds like you’re modifying files directly on the server? Instead, download Casper, rename the directory, make your changes, zip and then upload it as a custom theme. That way nothing will be overwritten.

2 Likes

I have tested and confirm that this solution works. Thank you very much.

Ghost newbie and non-developer with limited coding skills here trying to understand this process a little better. I am using Journal, and want to make some very minor changes to the theme, but want to avoid any issues with future updates or break anything. I am used to doing child themes in Wordpress, but this doesn’t seem to work the same way. I have downloaded the current version of the theme. When you say “rename the directory” do you just mean rename the Zip file before i reupload, or is there some code i need to change also? And if mess something up, can i just switch back to the original Journal theme? Also, if there are future updates to Journal, will I just have to repeat the process on the new version? Sorry if these are stupid questions.