Add Custom code/CSS
In this article, we will show you where you would need to add your Custom code/CSS in so you won't lose them while updating to the latest theme version
You won't lose any changes made in Minimog theme by adding Custom Code/CSS directly into these files, since it would be automatic-migrated to the updated theme:
  • File assets/custom.css.liquid: Add Custom CSS here
  • File snippets/custom-code-head.liquid: Add Custom Code such as tracking script, meta tag before closing tag </head>
  • File snippets/custom-code-body.liquid: Add Custom Code such as tracking script before closing tag </body>
If you made any customizations in these files:
  • Any files created by a 3rd-party app or customized codes from merchants/dev teams.
  • theme.liquid snippets
then you would need to manually copy the Custom code/CSS over to the updated theme. There is currently no way around this with Shopify.
Copy link