What is the Custom CSS Section for?

Edited

Before the introduction of the Custom CSS Section, making changes to your online store's theme required modifying code files or adding CSS code to the theme.css.liquid file. This was a daunting task, especially if you were not a developer or experienced with CSS. Additionally, making changes to the theme.css.liquid file affected the entire online store, which made it risky to make changes.

Now, with the Custom CSS Section, you can customize specific sections or pages of your theme without ever touching the theme codes. This makes it easier to make changes without running the risk of breaking the theme. For instance, you can apply a custom font size or background color to a single section, and it won't affect other parts of the website.

Another significant advantage of using the Custom CSS Section is that when you update your theme, all your CSS customizations are automatically moved or copied over. This is because the custom CSS field is part of the theme settings, which means that you no longer have to manually add all your CSS customizations.

How to use the Custom CSS?

Steps:

  1. In your Shopify admin, go to Online Store > Themes.

  2. Click Customize.

  3. Click Theme settings.

  4. Click Custom CSS.

  5. Add your code.

  6. Click Save.

As previously stated, Custom CSS can also be added to a specific section of your theme.

Steps:

  1. In your Shopify admin, go to Online Store > Themes.

  2. Click Customize.

  3. Click the section that you want to add CSS to.

  4. At the bottom of the section properties panel, click Custom CSS.

  5. Add your code.

  6. Click Save.

Here's a Shopify article about adding custom CSS to your theme that should help you better understand this new feature.

Was this article helpful?

Sorry about that! Care to tell us more?

Thanks for the feedback!

There was an issue submitting your feedback
Please check your connection and try again.