How to include small color thumbnails in the submenu?

How to include small color thumbnails in the submenu?

kay_png
Excursionist
17 0 6

Hi,

 

Just want to ask help including a small color thumbnail in my submenu. I want it to appear beside each color. Here's a sample of what I want it to look like:

 

Screenshot 2024-08-07 043516.png

 

Here's my website for reference. https://fabricapparel.com

 

Thank you!

Replies 2 (2)

oscprofessional
Shopify Partner
16115 2409 3121

Hello @kay_png ,

you can do this by some customization changes.

1. Goto shopify admin.

2. Edit theme code and open navigation related file(header or site-nav).

3. Find {%- for childlink in link.links -%} and add span in <li> tag, like this.

 

<span class="color" style="background:{{ childlink.title }};"></span>

2024-08-07_10-29.jpg

 

4. add some css in same file.

 

<style>
 .color {
  height: 25px;
  width: 25px;
  display: block;
  border-radius: 50%;
  margin: 10px;
}
header li {
  display: flex;
}
</style>

 

5. Output :

2024-08-07_10-27.jpg

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing | Oscp Upsell & Cross sell App : Free | Oscp Sales & Volume Discount App : Free | Custom Pricing Wholesale App : Free

Benjamen
Shopify Partner
91 7 12

Hello,
If you're open to a no-code solution, Meteor Mega Menu would be able to support your icons with ease. I'd take a look at our "Stardust" template.

Just throwing that option out there. I hope this helps 😊

Benjamen @ Helium
- Customer Fields ✪✪✪✪✪ (300+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (200+ reviews)