Hi @intman1958,
The CSS code you provided basically works. But I need to make an exact copy of the site. And there are other icons.
Glad to hear the CSS worked for you. In order to add other icons, you’d need to target the correct selector and use the appropriate CSS declaration. If you want to know more about CSS we recommend the tutorials at W3Schools – https://www.w3schools.com/css/default.asp.
How to change the image of the icon
You can replace the content with the corresponding Unicode value. Here’s a list of the icons with the Unicode next to them: https://astronautweb.co/snippet/font-awesome/.
So it would be something like this:
.wc-block-product-categories-list-item a:before {
content:"\f054";
Font-family: "Font Awesome 5 Free";
}
—
What should be the CSS code for subcategories – they need a different icon
Try with this CSS:
.wc-block-product-categories-list-item a:before {
content:"\f07b";
Font-family: "Font Awesome 5 Free";
}
.wc-block-product-categories-list.wc-block-product-categories-list--depth-1 a:before {
content:"\f07c";
Font-family: "Font Awesome 5 Free";
}
—
Hope this helps!