We want to add custom icons on the left side of our navigation menu (eg. a custom cap icon next to the navigation “caps” and so on). I couldn’t find a really helpful answer so far. Furthermore, I want to display some of these icons on the filter as well (examples attached).
To add custom icons to your navigation menu and filters in Shopify, you’ll need to make modifications to your theme’s code. Here’s a general outline of the steps you can follow:
Prepare your custom icons: Create or find the custom icons you want to use. You can design them yourself or source them from icon libraries or graphic resources.
Upload the icons: Upload the custom icons to your Shopify store. You can either upload them as image files (e.g., PNG, SVG) or use an icon font library.
Locate the navigation menu code: In your theme files, locate the code responsible for rendering the navigation menu. The file to edit will depend on your theme, but commonly it’s found in the theme.liquid or header.liquid file.
Edit the navigation menu code: Within the navigation menu code, find the section where the navigation items are generated. Here, you’ll need to modify the code to include the custom icons next to the navigation links. You can use HTML and CSS to insert the icons and style them accordingly.