Shopify theme code

Shopify theme code DEFAULT

Shopify Liquid

A complete developer experience for Shopify themes

Official VS Code extension for Shopify Liquid powered by Theme Check the Liquid linter and language server for online store themes.

Features | Installation | Configuration | 📦 VS Code Marketplace.


  • 🎨 Syntax highlighting
  • 💧 Liquid language server (Theme Check)
    • 📗 Completions
    • ✅ Linting
    • 🔎 Go to source
  • 📐 Automatic indentation
  • 🎎 Auto closing pairs


This VS Code extensions depends on the Theme Check language server, which is bundled in the latest Shopify CLI.

To install the CLI, follow these steps:

  1. Go to
  2. Follow the instructions for your operating system

⚠️ Warning Windows support is experimental. See this issue for details.


  • , (optional, Unix-only) a path to the executable.
  • , (optional) a path to the executable.



Start Customizing Your Theme

Since you are using Shopify platform, most of the customization basics has been covered in the Shopify Official Documents here .

As a result, this User Guide will only contain Arena’s theme customizations and the basic navigation, as well as steps to make these customs.

Before you start customizing your theme

It’s a good idea to Duplicate your theme to create a backup copy. This makes it easy to discard your changes and start again if you need to. Our friend at Rewind also offer backup service for your theme in the long run. You can see more details here.

There are 2 ways to customize your theme, you will need to use them both in some situations to achieve your customization goals. One way is using Shopify’s Theme Editor, the other is to dive in the theme’s code.

Using Shopify’s Theme Editor

You can customize your theme settings by using the Theme Editor. The theme editor includes a theme preview and a toolbar that you can use to add, remove content and make changes to your settings. To go to the Theme Editor:

  • From your myShopify Admin Homepage, go to > .
  • Find the theme that you want to edit and click .

Edit your theme settings

The theme editor toolbar is divided into and . Theme Editor

  • is the backbone of a theme included settings default for your Shopify store at all pages. You can edit your theme settings to customize your online store’s content, layout, typography, and colors. Each theme provides settings that allow you to change the look and feel of your store without editing any code.

  • You can use to modify the content and layout of rach section on different pages of your store. The customizing option in each section is different based on the theme you chose to install. If you wish to see their manual and action, please go to the theme’s corresponding User Guide.
    When you first open the , the settings for the are shown. To access the settings for other pages, select the page type from the top bar drop-down menu as seen below:

Dive into the Theme Code

You can also edit the code for your theme, especially if you choose to incorporate third party apps to your store. Again, please make sure you have your theme and store backup first before considering these changes. We also highly recommend working with your app provider to incorporate the app into your store first before taking matters into your own hands to prevent any unsuspecting errors. We are also unable to modify our theme code to accommodate the app of your chosen. Please read our policy on third-party app here before continue.

To edit the theme code,

  • From your myShopify Admin Homepage, go to > .
  • Click > . The code editor shows a directory of theme files on the left, and a space to view and edit the files on the right:

When you click a file in the directory on the left, it opens in the code editor. You can open and edit multiple files at once. Any files that you modify will show a purple dot next to the file name:

This can help you to keep track of where you have made changes.

Reverting the theme code

If you want to revert any changes to a file after you click , then open the file and click . A drop-down menu shows the date and time for each save that you’ve made. Select the version that you want to revert to, and click .

← Integrating Shopify App Setup Navigation →

  1. Zinus com reviews
  2. Vector image map
  3. 17 inch electric radiator fan
  4. Resident alien episodes
  5. Zara print


Build statusPRs Welcome

Getting started | Staying up to date with Dawn changes | Developer tools | Contributing | Code of conduct | Theme Store submission | License

Dawn represents a HTML-first, JavaScript-only-as-needed approach to theme development. It's Shopify's first source available theme with performance, flexibility, and Online Store 2.0 features built-in and acts as a reference for building Shopify themes.

  • Web-native in its purest form: Themes run on the evergreen web. We leverage the latest web browsers to their fullest, while maintaining support for the older ones through progressive enhancement—not polyfills.
  • Lean, fast, and reliable: Functionality and design defaults to “no” until it meets this requirement. Code ships on quality. Themes must be built with purpose. They shouldn’t support each and every feature in Shopify.
  • JavaScript not required, fails gracefully: We extract every bit of speed and functionality out of HTTP, semantic HTML, and CSS before writing our first line of JavaScript. JavaScript can only be used to progressively enhance features.
  • Server-rendered: HTML must be rendered by Shopify servers using Liquid. Business logic and platform primitives such as translations and money formatting don’t belong on the client. Async and on-demand rendering of parts of the page is OK, but we do it sparingly as a progressive enhancement.
  • Functional, not pixel-perfect: The Web doesn’t require each page to be rendered pixel-perfect by each browser engine. Using semantic markup, progressive enhancement, and clever design, we ensure that themes remain functional regardless of the browser.

You can find a more detailed version of our theme code principles in the contribution guide.

Getting started

  1. Fork the repository and clone it:
git clone [email protected]:your-username/dawn.git cd dawn
  1. Install the Shopify CLI by following these steps.
  2. Launch a development server in the folder:

You'll need access to a Shopify store in order to get started with theme development. If you don't already have one, you can set up a development store.

Staying up to date with Dawn changes

Say you're building a new theme off Dawn but you still want to be able to pull in the latest changes, you can add a remote pointing to this Dawn repository.

  1. Navigate to your local theme folder.
  2. Verify the list of remotes and validate that you have both an and :
  1. If you don't see an , you can add one that points to Shopify's Dawn repository:
git remote add upstream
  1. Pull in the latest Dawn changes into your repository:
git fetch upstream git pull upstream main

Developer tools

There are a number of really useful tools that the Shopify Themes team uses during development. Dawn is already set up to work with these tools.

Shopify CLI

Shopify CLI helps you build Shopify themes faster and is used to automate and enhance your local development workflow. It comes bundled with a suite of commands for developing Shopify themes—everything from working with themes on a Shopify store (e.g. creating, publishing, deleting themes) or launching a development server for local theme development.

You can follow this quick start guide for theme developers to get started.

Theme Check

We recommend using Theme Check as a way to validate and lint your Shopify themes.

We've added Theme Check to Dawn's list of VS Code extensions so if you're using Visual Studio Code as your code editor of choice, you'll be prompted to install the Theme Check VS Code extension upon opening VS Code after you've forked and cloned Dawn.

You can also run it from a terminal with the following Shopify CLI command:

Continuous Integration

Dawn uses GitHub Actions to maintain the quality of the theme. This is a starting point and what we suggest to use in order to ensure you're building better themes. Feel free to build off of it!


We love fast websites! Which is why we created Shopify/lighthouse-ci-action. This runs a series of Google Lighthouse audits for the home, product and collections pages on a store to ensure code that gets added doesn't degrade storefront performance over time.


Dawn runs Theme Check on every commit via Shopify/theme-check-action.


Want to make commerce better for everyone by contributing to Dawn? We'd love your help! Please read our contributing guide to learn about our development process, how to propose bug fixes and improvements, and how to build for Dawn.

Code of conduct

All developers who wish to contribute through code or issues, please first read our Code of Conduct.

Theme Store submission

The Shopify Theme Store is the place where Shopify merchants find the themes that they'll use to showcase and support their business. As a theme partner, you can create themes for the Shopify Theme Store and reach an international audience of an ever-growing number of entrepreneurs.

Ensure that you follow the list of theme store requirements if you're interested in becoming a Shopify Theme Partner and building themes for the Shopify platform.


Copyright (c) 2021-present Shopify Inc. See LICENSE for further details.

How to edit a Shopify Theme - Development Best Practice

How to edit HTML Code on Shopify?

Welcome to this article about how to edit HTML in Shopify. In the beginning, I will briefly introduce what HTML is and its importance to your online shop.

In simple terms, HTML stands for HyperText Markup Language used to create a web page, on a website may contain many pages and each page is referred to as an HTML document.

HTML is a hypertext markup language, so it will play the role of building hypertext structure on a website or declaring digital files (media) such as images, videos, music. It can be said that if the website is a complete body, HTML is the skeleton of the body. Therefore, editing HTML for your online store on Shopify is extremely important. Below is a detailed tutorial to help you do this.

How to edit HTML Code on Shopify

1. What programming language does Shopify use?

Programming languages are considered powerful supporters for web designers and web operators. This is no exception for online shop owners of the Shopify e-commerce platform. To be able to build a store and develop it on Shopify, you should know about the Shopify uses programming language. Visit our post What programming language does Shopify use? now to understand more about these programming languages.

You might be wondering why do you need more than one programming language? I am very pleased to explain this. Each programming language has its own strengths and meets a certain array. They give the best performance but cannot perfect them all. It is a simple explanation to help you understand why there are many different programming languages. Therefore, you need to be knowledgeable about the many different programming languages that Shopify uses in order to optimize your store. This will contribute a significant part in building customer trust.

2. How to edit HTML and CSS files In Shopify?

Step 1: Go to Theme

Make sure that you’ve logged in your Shopify account. Afterward, tap on the section on the left of your admin page and go to .

How to edit HTML in Shopify

Step 2: Select Edit code

You are in the page now. There is a list of all the themes you have. What you need to do is tap on the button next to the theme’s name you want to edit. Select in the drop-down list.

How to edit HTML in Shopify

Step 3: Choose the file

There are lots of HTML and CSS files on the left sidebar. Take a view of them and choose the file you expect it to be edited.

How to edit HTML in Shopify

Step 4: Click Save

After you complete making changes to the file, click to save all of them.

How to edit HTML in Shopify

Step 5: Go to Add a new asset

Besides editing an HTML/CSS file, you can add a new one also. In order to do this, you go to the directory and select .

How to edit HTML in Shopify

Step 6: Create a file

You will have two options to create a file:

  • If you’ve already had a file on your computer and want to upload it. You can choose to and tap on . A new dialog will be shown to let you select the file from your computer. Afterward, click to have it done.

How to edit HTML in Shopify

  • If you only need to add a blank file, choose and name the file. Then, select the file’s type and click .

How to edit HTML in Shopify

3. Edit Shopify theme using HTML and CSS

One thing you should keep in mind is that you should save backups of the theme you edit.

3.1. Custom CSS

This is one of the simplest and most effective ways to help you make adjustments. Custom CSS is the least damaging method to your theme. So, choose this option if you need to adjust the color, font, spacing, or size of elements that cannot be customized using the theme’s options panel. Below are some simple steps for you to follow.

Step 1: Go to Theme

First, tap on the section on the left of your admin page and go to .

How to edit HTML in Shopify

Step 2: Click Edit code

You are in the page now. There is a list of all the themes you have. What you need to do is tap on the button next to the theme’s name you want to edit. Select in the drop-down list.

How to edit HTML in Shopify

Step 3: Go to Assets

From the left sidebar, scroll down to find the directory and tap on it.

How to edit HTML in Shopify

Step 4: Select the styles.scss.liquid file

Take a look at the file in the field. Afterward, click on it. The file will be open instantly. What you need to do now is scroll down and add your custom CSS code to the end of this file.

Step 5: Select Save

Don’t forget to select before you leave.

3.2. Customize code and template modifications

Unlike the Custom CSS method, this method will help you make customizations of more complex things like adding a block of text or functionality. To use this method, you need to do the following:

Step 1: Go to Edit code

Firstly, you should go to as described above to view all the files.

How to edit HTML in Shopify

Step 2: Click Add a new snippet

Afterward, access the directory and click .

How to edit HTML in Shopify

Step 3: Name your snippet

What you should do first to add a new snippet is typing a name for it. There is a tip for you to create an easy-to-use and consistent name. You should use lowercase letters and connect them with dashes instead of spaces. Furthermore, use the descriptive name to know which snippet is.

How to edit HTML in Shopify

Step 4: Tap on Create snippet and fill it

In this step, you need to tap on the button. Then, enter any HTML code which can include Liquid tag in the blank file you’ve made.

How to edit HTML in Shopify

Step 5: Locate the file

What you need to do is locate the Template folder. Next, locate the file that controls the type of page you expect to add this custom code to. For example, let look for the file if this custom code will be added to your product page.

Step 6: Enter the custom code

Click on the file to open it. Take a view of the code on the right of the screen. Then, decide the best location for the custom code. After you’ve placed the custom code, add the following code next to it:

Next, replace the with the name in step 3.

7: Click Save

Finally, click save to finish your work. You can preview your work to see if it meets your requirements.

3.3. Edit your theme code

If you already know how to edit HTML in Shopify, you may want to learn how to edit theme code. Because theme files also include HTML and CSS and editing the theme code will make your store more perfect and more advanced. Come to our post How to Edit Shopify Theme Code to view a detailed guide about it.

Read more: How to find out which theme a website is using

Final words

In conclusion, this article provides you with the way to edit HTML in Shopify quickly and easily. More than that, to help you make detailed changes to your online shop, the editing Shopify theme using HTML and CSS section is extremely helpful. I do hope that you feel interested in this post and make your store the best.


Code shopify theme

How to Edit a Shopify Theme

How to Edit a Shopify Theme
Published On:23rd Aug 2018

Setting up an online store with Shopify is quite easy. It also has a very beginner-friendly environment and a user interface that makes things easier for you to manage your store. Although, it can be a bit overwhelming for a beginner to figure things out when they’re completely new to the eCommerce platform.

If you’re just getting starting with Shopify and trying figure out how to edit a Shopify theme, then this post is for you. In this guide, we’ll show you exactly how to edit and customize a Shopify theme to personalize your store design.

Keep in mind that while Shopify offers plenty of ways to customize the design of your store theme, most of its customization options are limited. Luckily, there are ways you can get around the restrictions to design advanced Shopify stores. Keep reading to find out what they are.

Edit The Design Using Shopify Theme Editor

Your Shopify admin dashboard allows you to easily customize the design of your store theme using its built-in theme editor.


You can access the Theme Editor by going to Online Store > Themes and then clicking on Customize.


From the Theme Editor, you can start editing the design of your Shopify theme. Simply choose a section and start editing.


For example, to add a header image to your store theme, click on the corresponding section and upload an image. It’s as simple as that.


Then, you can edit the rest of the sections to your preference.


You can also switch over to the Theme Settings tab to edit the theme colors, fonts, and checkout page designs.

A great thing about the Shopify Theme Editor is that it shows live previews of the changes you make to your theme. After making all the changes, click the Save button on the top-right corner.

Edit Theme Code [Advanced]

If you have coding and web design experience or if you can afford to hire a web developer, you can also edit the core theme files of your Shopify theme to edit the design and add unique elements.

Make a backup of your theme before making any changes to the theme code. Then, follow this tutorial to learn how to edit the code for each section of a Shopify theme.


You can start editing the theme code by going over to Online Store > Themes > Actions > Edit Code and then choose the particular section which you want to edit the code.

Use A Premium Shopify Theme

Both free and premium themes offered by the official Shopify themes directory has very limited customization options. If you want to make advanced changes to your theme design, the easiest way to do so is to get a premium theme from a third-party marketplace.

These premium Shopify themes come with more advanced designs, layouts, and features that will help you build a more unique Shopify store unlike others.


For example, this Shopify theme comes with a stylish mega-menu you can use to effectively showcase all your product categories in one navigational menu.


And this Shopify theme features the quick view function that allows your customers to view a product on-page without having to load a separate page.

Such brilliant premium themes also offer extended customization options for personalizing the design of your store.

In Conclusion

Most Shopify sellers stick with the free themes without even making any changes to its design. This is an amateur move that’ll ruin your business. Unless you want your store to look like thousands of other stores, you should use a unique design and customize your theme to stand out from the crowd.

In order to make money, you first need to invest some money in your business. Before hiring developers and designers to edit your Shopify theme, consider switching to a better premium theme.

Customize your Shopify Theme FAST - How to Design Shopify Store 2021

Even after spending a lot of time finding that perfect theme for your online store, that theme might not match up exactly to the creative vision you have. There may be a number of visual tweaks that you still want to make.

If you’re completely new to Shopify, understanding how to do that might feel overwhelming at first.

Don’t let that slow you down.

In this article, we’ll walk you through how to customize your store in Shopify, edit theme files, and give your store the personalization it needs to stand out online.

Before You Get Started

Any time you make changes to the theme design and files in your Shopify store, those changes will become live as soon as you click “save."

Since any minor error when customizing your theme could break the visual design of your site, you should make a backup of your current theme files beforehand.

If you’re not familiar with HTML or Liquid, Shopify’s unique coding language, you might find the learning curve steeper for making significant visual edits in the theme files. In cases where you want to make complex customization, or time is a critical factor for you, you should consider working with a trusted Shopify partner to design your store.

How to Edit and Customize Your Shopify Theme

There are two approaches to customizing your Shopify theme.

The simplest approach is to use the visual customization tool built into the Shopify platform. The visual editor requires no knowledge of code and allows you to edit the existing elements coded into the theme you have installed.

The theme files are coded to establish not only the visual layout of the site, but also how certain elements are handled and displayed when you create custom landing pages in Shopify. The visual editor will let you add sections within your layout, add and edit how content is displayed, and make limited changes to the layout of individual sections.

To find the theme customization, log into your Shopify dashboard. Click on “Online Store” and then click on “Themes."

Click on themes

Once inside the Themes window, click the “Customize” button.

From the customization window, you’ll be able to edit the sections of each page in your Shopify store by selecting them from the menu on the left.

Edit sections

The sections you see will change based on the page you’re viewing. Some pages will be limited on what sections you can add. Again, this is determined by how the theme files have been coded.

To change the page you want to edit in your theme, click the down arrow next to the current page at the top of the window. Select the next page you want to edit by clicking on it. Be sure to save any changes to your current page before moving on to the next.

Select the next page

Each section you edit will have customization options based on how those sections have been coded in Liquid.

For example, when choosing the “image with text overlay" section you’ll have options to change alignment, layout, text size, the image and content.

Image with text overlay

When editing a featured collection section, the customization options change to how products are displayed with some other simple display options.

Featured collection

Depending on the theme you have in your store, you may be able to add sections to the individual page templates within your theme. When you click on “Add section”, you’ll be given a list of the available sections to choose from.

When you select a section, you’ll see a preview of it in the main window, with the option to “Add” the section to current page.


After clicking to add the new section, you can further customize it from the menu like the other sections as shown above.

Additionally, you can click and drag the sections to reorder how they appear on your page to further customize the layout.

You can also edit the header and footer to control the alignment and display of your logo and store menu.

Headers and footers

Customizing the Settings of Your Theme

In the same menu, you’ll find a tab for Theme Settings. Within these settings you can make additional customization to elements of your store such as:

  • Theme colors
  • Typography (font type and size)
  • Social sharing options and linked social accounts
  • The favicon for your store
  • And various display elements of your checkout page
Theme settings

If you want more control over the customization of your Shopify store outside of the visual editor, you’ll need to edit the theme files directly.

Editing Code Directly in Shopify Theme Files

Shopify has its own language that coincides with the HTML of your store, and you can easily pick up the basics well enough to start making whatever theme you install more personalized to your brand.

There are two ways to edit the theme files in Shopify.

First, you can switch to editing the code from within the customization window if you’re already making visual changes to your site.

At the bottom of the editor, click on “Theme actions” and choose “Edit code."

Edit code

The other method is from the main Themes window. Instead of clicking “Customize”, you can click on “Actions” and choose “Edit code.”

Either method will launch the theme file editor, with a list of individual files in a left-side navigation and a main window displaying the code for the chosen file.

Individual files

Each file you choose will open in a new tab within the editor, allowing you to work on, and cross-reference, multiple theme files at a time.

Theme editor tabs

Choose Which Theme Files to Edit in Shopify

In the left navigation, you’ll find all the theme files split into expandable segments, with each segment ordered based on how they work together:


The layout segment contains the theme.liquid file which is considered your master template. Any other templates or pages you create within Shopify are rendered (displayed) within your theme.liquid file.

This is where you’ll work with repetitive elements that will display throughout your entire Shopify store, like your menu and other header elements as well as your footer.


The templates segment contains all the pre-created page templates that exist for your Shopify theme. Any theme you license for your store will be made up of template files that control how content is displayed on individual pages.

When you create a new page in your Shopify store, you’ll be able to choose one of these templates.

Each template file is typically made up one or more sections, code snippets, and html.

Some templates may only contain one or two sections with a minimal amount of code, like this custom 404 template:

Template editor

While others, like the product template contain a collection of sections to allow for more customization of the content on that page.

Product template


Within your theme files, the sections should be seen as individual, customizable components. When we covered the visual editor above, the sections being customized were based on these pre-coded sections.

Added in 2016 by the Shopify team, pre-coded sections make editing your theme files much easier (and faster).


For example, instead of editing multiple pages where a newsletter opt-in is displayed to ensure it displays properly, you only have to edit a single section file. The changes you make will show across your entire store on any page that references that section.

Any of the sections you include in your page template can later be added and customized easily within the visual page editor in Shopify.

In addition to editing the existing theme files in Shopify, you can also create new theme files.

For those who prefer full control over the customization of their store, this is the best way to quickly create a new landing page template. You can edit the code to add any sections you like. Once the template is completed, you can later use that template when creating new pages for your Shopify store.

Liam Griffin, Partner Education and Developer Advocate at Shopify wrote a thorough guide showing how to create page templates using custom sections.

Tips for Editing Shopify Theme Files (Don’t Skip This Part)

Start by editing CSS

One of the simplest ways to customize the appearance of your Shopify store is to make edits to the theme’s CSS file. This is also considered to be the approach with the least likely chance of “breaking” the way your theme displays.

Within your theme options in the visual editor you’ll have some basic control over style elements. However, editing the CSS gives you more control over the placement of elements, spacing, fonts, color, and more.

Use snippets

Snippets are a great resource when editing your theme files in Shopify. Snippets are reusable segments of code kept in a single place. When editing your template files, you can refer insert a snippet reference. This will trigger the snippet, saving you the time of coding the same thing over and over.

Also, when you make a change to the snippet code itself, that change will be active on all templates/pages that reference that snippet. This makes any future updates much easier.

Make backups of your theme

When working in the theme editor you’ll see the option within each file to view older versions. This lets you revert back to a previous version if the changes you make to a theme file don’t work as expected.

Despite having access to previous edits, you should still make backups of your theme files.

The easiest method is to duplicate your theme before you make any changes, especially significant changes that could impact functionality.

To duplicate your theme, navigate to the Themes page. Click on “Actions” and choose “Duplicate.”


When you duplicate your theme, Shopify will create an exact copy of the current version of all theme files. It will be displayed in your Theme Library as a “Copy of <theme name”>.

Publish copy

This duplicate is inactive and will not impact the load times, speed, or functionality of your live store. At any time, you can revert back to that version of your site by clicking “Action” next to the duplicated theme and choosing “Publish."

Because you can have more than one duplicate, and you’re likely to make additional backups, rename your duplicate theme in a way that makes the version easy to identify, like including a time stamp in the name.

Keep a Record of File Changes

The longer your store is running the more functional and visual changes you’ll be making. Even with regular backups, you should still keep a log of the changes you make to your site.

It may sound tedious, but they don’t need to be incredibly detailed.

Just create a simple document or spreadsheet that tracks the who, what, when and a simple why summary of the change.

You can also leave comments directly in your code in Shopify when editing them files.

For your standard html files, you can place comments between comment tags.

Standard HTML files

For JS and CSS files, you’ll use two forward slashes with your comments placed between them.

JS and CSS files

Use Inspection Tools Before Customizing

If you have limited experience with website customization, there are tools you can use to help understand how certain segments of HTML and CSS impact the way your store is displayed.

In Chrome, you can use the inspector tool to identify certain elements you want to change then use that code to edit your theme files.

Inspection tools

To use the tool, right click in the page you want to inspect (control + click on Mac) and choose “Inspect."

Make Small Changes in Steps

Shopify themes are typically designed with a larger purpose in mind, not just to be visually appealing. In many cases, a theme is designed for a specific approach such as mobile-first eCommerce, stores that sell only one type of product, or perhaps catalogs that need to be displayed a certain way for enterprise-level stores.

When you make a lot of visual changes to those theme files, it can sometimes inhibit the intended purpose of a theme and even create friction during the shopping experience.

Editing your Shopify theme files should be done in small incremental changes. Once you make your edits, be sure to preview and test those changes to ensure they work as intended without impeding the functionality of your theme.

Shogun Offers Another Way to Customize Your Store

An alternative to editing the code of your theme is to use an app like the Shogun Page Builder to customize your store.

Shogun does all the hard work for you. It provides you with pre-built sections for text, images, menus, buttons, and many other website elements. You can arrange the elements however you want, and each element is highly customizable - you can change everything from text and background color to the margins and padding that separate each element.

Edit Your Shopify Theme Files to Build a Visually-Stunning Shopping Experience

Editing the theme files in Shopify gives you more control over customizing your Shopify store. Once you spend some time learning HTML and Liquid, you’ll be able to make visual edits on the fly. This allows for more rapid deployment of updates. It also reduces the need to spend on design and developer hours. If you can’t find the right premium theme for you store, use the tips above to customize your current theme to better meet your needs.


Similar news:

Shopify CSS Code

You’ve got a vision of the perfect store design in your head, but no Shopify theme or anything in the Shopify app store seems to be able to make your dream a reality.

Well, you’re in luck—by adding your own custom CSS, you can get your shop looking exactly how you want it to.

How Do I Add Custom CSS To Shopify?

  1. Backup Your Site
  2. Navigate To Your Theme Files
  3. Edit or Create a Custom CSS File

1. Backup Your Site

Okay, you don’t technically need to backup your site first.

But even CSS gods make mistakes.

So if you have any doubt that you might accidentally make an error in your CSS, I’d highly recommend backing up your site before you make any changes.

This will allow you to revert your shop back to its current state if you make any mistakes.

Here’s a guide on how to backup your Shopify store.

All done (or just super-confident?)—onto step 2!

2. Navigate To Your Theme Files

To get to your theme files, log in to your Shopify admin at

(replace your-store-name with… your store name).

Then on your left-hand sidebar navigate to Online Store -> Themes, which should be under the heading “Sales Channels”.

Then to the right of the heading “Current theme”, there is a dropdown button labeled “Actions”.

Click on this button and click “Edit code” in the dropdown, as shown in the screenshot below:

change separator shopify

3. Edit or Create a Custom CSS File

You’ll now see a list of all the files that make up your Shopify store.

From here we have two choices: we can edit an existing file, or we can create a new one.

To edit an existing file, type in into your search bar.

You should see all the CSS files that make up your theme, as shown below:

add custom css file to shopify store

To exit existing CSS, open up your file.

Here you can edit existing CSS, or add your own.

While editing your CSS file is quick and simple, the downside is that it’s hard to keep track of the changes you’ve made.

So the more full-proof long-term method is to add your own CSS stylesheet.

This makes it a lot easier to keep track of all the custom code you’re adding (at the cost of being a bit harder to set up).

To add a custom CSS file, click “Add a new asset” under the “Assets” heading, as shown below:

edit custom css file shopify

From here you’ll see two options: “Upload a file” or “Create a blank file”.

add a new asset shopify store

If you have a CSS file ready that you created in another application, go ahead and upload it.

Otherwise, click “Create a blank file” and label it “custom”, making sure that the file extension is set to .

add custom css to shopify shop

Add all of your custom CSS to this file.

Now navigate to your file using the search bar again.

Click on the file to open it, and locate a line that looks similar to this:

(the easy way is to Ctrl + F rel=”stylesheet”)

Underneath this line, paste this one:

Remember that the file name needs to match the name of the CSS file that we just uploaded/created.

So if you chose a different name for your CSS file, replace ‘’ in the code snippet above with the name you chose.

Once you’ve done that, save your stylesheet by clicking the “Save” button in the top right-hand corner of the editor.

save your css stylesheet

Aaaaand you’re done!

Now you can add code to your file and your changes will show up on your website.

Click the Preview button on the top right to see how your website would look like and check that everything works before you publish your changes.

Make sure you save a copy of the snippet above and your stylesheet.

Each time your Shopify theme is updated to the latest version, you’ll have to include the snippet again and create a new CSS file if it has been deleted.

(This is a temporary requirement until Shopify provides a better solution).

How Do I Create A Custom CSS File?

Go to Online Store > Themes > Actions > Edit code. Scroll down to the Assets section on the left venue and select Create a new asset. You’ll have the option to choose the file type and name it.

How To Edit CSS In Shopify?

Go to Online Store > Themes > Actions > Edit code. The master template included in all pages is the theme.scss.liquid file. It is recommended that you add all custom code in a new custom.scss.liquid file under Assets and link it to your main theme.scss.liquid file. Make a backup of your theme files in case something goes wrong.

Where is CSS found in Shopify?

  1. Log in to your Shopify admin dashboard
  2. Click Online Store
  3. Select the Actions button on your site theme and choose Edit code
  4. You should see your CSS code


It’s easy to add Shopify custom CSS code to add styles and apps that the Shopify platform rich text editor and standard theme settings cannot do. You can even customize your Terms of Service pages.

However, if you’re having issues modifying your theme code or find HTML and CSS too complex, you can ask the support team for help or hire a Shopify Expert.

, you can follow me on Twitter 👉🏻 @bitofseo.

Please DM me if you have any questions about this Shopify article (or have some feedback to make it better 😄️).

About Jake Sacino

After working as an engineer and consultant for a bunch of big companies, Jake now works as a full-time SEO & software engineer.



1087 1088 1089 1090 1091