Skip to content

Add custom CSS or edit template code

A few notes before you begin

Modifying theme code in the template editor requires some basic knowledge of CSS, HTML and Liquid so be sure you’re comfortable with those areas before attempting any.

Check out Shopify's theme code customization tutorials.

Visit W3Schools for a quick CSS tutorial.

Tip — Create a backup

We recommend making your customizations on a unpublished version, to do this, go to Actions > Duplicate. create a backup

Adding custom CSS

An easy way to make basic styling adjustments to your store is via CSS. These types of changes are best if you need to adjust the color, font, size, spacing or placement of elements beyond what is available in the theme settings.

All overriding CSS styles should be added to your theme--customizations.scss.liquid file in your Assets folder. This makes it easier to track and carry across customizations if you need to update your theme to a newer version.

add custom css

Can't see your customizations file?

For older versions, the customization file can be found in Snippets > custom-styles.liquid

Need additional help?

If you're wanting to make more complex customizations, you can consider hiring a Shopify Expert or a third party developer.

Read more about our recommendations for theme tweaks and customizations.

Shopify Forums are also a great resource for advice from other storeowners on a wide range of topics.