Add Custom code/CSS correctly

Learn where to add your Custom code/ CSS so you won't lose them whenver updating to the latest theme version

  • 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:

"For any files generated by a third-party app or custom code developed by merchants or development teams;

theme.liquid snippets;

you'll need to manually transfer the custom code/CSS to the updated theme. Unfortunately, Shopify doesn't offer a workaround for this."

Last updated