Customize Shopify Theme Icons

Introduction on How to Customize Shopify Theme Icons

When it comes to creating a memorable online store, the devil is in the details. One surprisingly overlooked aspect and moderately difficult aspect of Shopify theme customization is figuring out how to customize Shopify theme icons, such as the cart, search, and mobile icons.

Recently for a project we’re working on with a design and apparel business called All Theory Co. we were asked to change the color of the icons in the toolbar to match their color scheme. By changing their colors and adding hover effects, you can subtly enhance your store’s visual appeal and create a better user experience. In this post, we’ll walk you through the process of customizing your Shopify theme icons and share some tips we’ve learned along the way.

Locating the Relevant CSS Classes

To start the process to customize Shopify theme icons, you’ll need to first locate your code to identify the CSS classes that control their appearance. Here is a quick walkthrough on how to access the code.

First go to your Online Store, and click on Themes. The below screenshot is for a business named All Theory Co. and may look different than your own theme.

Second, click the button to the left of the Customize button and select Edit Code.

Now you must find the specific CSS file and class. This may require some exploration of your theme’s codebase, In our case it was in base.css, but this can vary by the theme you’ve select as other tutorials have different information (like this one).

We searched for specific sections that had terms like cart and search and found the .header__icons and .header__icon classes to be the appropriate classes, These are commonly used to style icons in the headers in Shopify.

If you’re not familiar with navigating through code, don’t worry! There are online resources available, although they may focus more on changing the icons themselves rather than their colors (example). Some guides may not work perfectly with your specific theme configuration but they can still provide valuable insights.

Implementing Custom Icon Styles

Once you’ve identified the appropriate CSS classes, it’s time to apply your custom styles. Here’s a step-by-step guide:

  1. Set a default color: To ensure consistency, start by setting a default color for all your icons. In this example, we’ll use #E95060. Target the icon classes and use the fill property for SVG icons and the color property for font icons. In our case we modified color.
.header__icons .header__icon {
  color: #E95060;
  1. Add smooth transitions: To create a polished look, add a smooth transition effect when the icon color changes on hover. Use the transition property to achieve this. Set a global transition for all icons to maintain consistency.
.header__icons .header__icon {
  fill: #E95060;
  color: #E95060;
  transition: color 0.3s ease, fill 0.3s ease;
  1. Define hover effects: Now, you can customize the hover effects for specific icons. For example, let’s change the cart and search icons to black (#000000) when a user hovers over them. Target the specific icon classes and apply the hover styles.
.header__icons .header__icon.cart-icon:hover,
.header__icons {
  fill: #000000;
  color: #000000;

In our case the final code updates looked like this.

Testing and Refining

After implementing your custom icon styles, thoroughly test your Shopify store to ensure the icons behave as expected. Check that the default colors, hover effects, and transitions are consistent across all relevant icons. If needed, refine your CSS code to address any inconsistencies or unintended effects.


Learning how to customize Shopify theme icons in your store is a simple yet effective way to enhance your store’s visual appeal and create a more engaging user experience. By following the steps outlined in this post, you can customize Shopify theme icons, colors, and add hover effects that align with your brand’s style. Remember to test your changes and refine your code as needed to achieve the best results.

At VagaVang, we help businesses optimize their Shopify stores, WordPress WooCommerce stores, and create captivating e-commerce experiences. If you need assistance with theme customization, design, or development, our team is here to help. Schedule a consultation with us to learn more about how we can elevate your Shopify store and drive success.

Key Takeaways

  • Customizing Shopify theme icons involves identifying the relevant CSS classes and applying custom styles.
  • Use the fill property for SVG icons and the color property for font icons to set default colors.
  • Implement smooth transitions using the transition property to create a polished look.
  • Define hover effects for specific icons by targeting their CSS classes and applying desired styles.
  • Thoroughly test your changes and refine your code as needed to ensure consistency and optimal performance.

By following these tips and seeking expert guidance when needed, you can make your Shopify store stand out from the competition and create a more memorable experience for your customers.

Similar Posts