Update theme without losing custom code

Topic summary

A user customized the Dawn theme by adding:

  • WhatsApp icon to social media icons
  • Script to hide empty collapsible rows
  • Video icon option for collapsible rows

Problem: These custom code changes are lost whenever the theme is updated.

Question: Is there a way to preserve custom code during theme updates without manually re-adding it each time?

Response provided: When updating a theme, the original version remains in the theme library, so custom code won’t be permanently lost. However, the updated theme version may not support certain customizations, which is why they disappear after updates.

Status: The question about automated preservation of custom code during updates remains partially unresolved. The workaround mentioned is accessing the original theme version from the library.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

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.