local changes to themes get lost when updating

Permalink 1 user found helpful
I have made some changes to various parts of the standard theme (greek_yogurt) but lost them when updating Concrete as a new folder copy of the theme is installed under the updates.

It is a nuisance to have to make the edits again, especially as I have made the same custom changes to several sites.

Is there a way to keep my changes? Could I copy the whole theme folder somewhere and rename it (is it ok to just rename the folder?) and will it work with new updates?

 
jordif replied on at Permalink Reply
jordif
Hello,

sure, you just have to copy the whole theme folder (keeping the same name) up to the /themes directory. This way you'll be able to update without losing your changes.

More info:http://www.concrete5.org/documentation/how-tos/developers/change-th...

jordi
perrynewton replied on at Permalink Reply
The documentation link that you refer to actually states "You can not override a theme by copying the theme from its packaged directory up to the themes/ folder."
Have I mis-understood this?
Would it be better to copy the standard theme and rename it then I never get confused? Do I just name the folder or are there some internal references to the theme name?
jordif replied on at Permalink Reply
jordif
Oops! Sorry, you're completely right. I just assumed themes worked this way as well, but it seems they're an exception to the rule...

So yes, you should rename the theme folder and also change the name of the theme in a file called "description.txt"

More info:http://www.concrete5.org/documentation/how-tos/editors/customize-a-...

Hope this time the link does not say the opposite :)

jordi
perrynewton replied on at Permalink Reply
Perfect. Many thanks
mhawke replied on at Permalink Best Answer Reply
mhawke
It is true that after the update, concrete5 uses the new core files that are in '[root]/updates/concrete5.6.x.x/concrete' folder however, the original '[root]/concrete/themes/greek_yogurt' files that you edited are still there. Copy that old 'core' 'greek_yogurt' folder to your themes folder and rename the folder "my_greek_yogurt" and change the top line of description.txt to "My Greek Yogurt". Then install your 'new' theme and activate it and your old changes should be there.