How do I safely update the theme when I use a child theme?

Updates are installed from Marketplace > Marketplace Downloads: on the Themes tab, click Install update next to the theme. The update changes the parent theme only. Your child theme is a separate folder, and HubSpot does not change anything inside it: its own CSS and JS files and its theme settings stay exactly as they are. Everything the child theme inherits from the parent (templates, modules, sections and any theme settings you have not overridden) picks up the update automatically.

The only files that can cause trouble are the ones your child theme overrides. A file placed at the same relative path as a parent file replaces the parent's version, and that copy keeps the old code after the update. If the updated parent expects something that your old copy does not have, a page using that copy can look or behave differently. So before updating, list the files your child theme contains and read the Focus Plus release notes to see which parts of the theme changed. After updating, open the pages that use those overridden files and check them. If one of them misbehaves, open the updated parent file under the @marketplace folder in the Design Manager (it can be viewed but not edited), apply your changes to a fresh copy of it and replace the old override in the child theme.

Back to Knowledge Base

Comments

Related posts

Search Why does my search results page not show the header and footer?