Update theme without losing custom code

I use Dawn and I’ve made a few changes to my theme (add whatsapp icon to Social Media icons, script to hide empty collapsible row, add video icon as an option on the collapsible row).

When I update Dawn these changes are lost. Is there a way, other than manually adding the code every time I update the theme, to keep this custom code when updating the theme?

Hi @DeeLT !

Whenever you update a theme, there are coding that the updated theme does not support this is why. However, whenever you are going to update the original version of the theme will still be added on your theme library, so you do not need to worry about the theme codes to be lost.

I use Dawn myself and have run into the same problem. Your existing customized theme remains available after the update, but that doesn’t transfer its customizations into the new Dawn version.

Where possible, it helps to keep custom code in separate snippets or asset files. However, changes made directly to existing Dawn files still need to be checked with every update. Simply copying the old modified files into the new version isn’t safe, because that could overwrite changes Shopify introduced in the updated theme.

This exact issue with Dawn led me to create a paid Theme Update Audit. It compares your customized theme ZIP with the updated version and identifies which changes are present, missing, partial, or conflicting. In your case, this would include changes such as the WhatsApp icon and the additional collapsible-row behavior.

The audit includes guidance on what needs to be addressed. More details are available in this Ask & Offer post: Theme Update Audit for Custom Code