I created a vendor attribute with a type of “checkboxes”. I then added quite a few of the “options”, so for example a attribute of “Fruit” and then options of “Apple”, “Orange”, “Banana”, etc…
When I have these options displayed on a listing page in the Vendor block, all of the options are just listed out in one div. I need to target each option with CSS, so for example adding an icon to each one or changing the text color of each one. So I need something like a span around each one with a specific class (the slug of the option would make the most sense).
Is there a PHP function I can add that will make it so each attribute option I add gets something like around it?
I should also add that I need this both on the vendor block and on the vendor page.