Guide to Building Shopify Themes

Initially, I was overwhelmed by creating a custom theme / modifying the existing theme in the Shopify project. I had spent hours wondering if it was the best practice to change the .liquid file directly from Shopify. If you are in a similar situation, it is normal to feel in the initial stage.

I would like to share a few insights with you that will make your development process smooth.

Use of Shopify CLI

If you are not aware of Shopify CLI, you are missing one of the best features on Shopify. It helps you to develop the theme locally without affecting the existing project. Also, you can back up the existing projects, so that you can revert the changes.

Link for Installing Shopify CLI

Verify the installation

In order to verify if CLI is properly set up, you could use the following command in the terminal.

> shopify version

Log in to the store

You need to tell the Shopify CLI which store you are connecting to, so that you can modify the files.

> shopify auth login