How do I add padding to attributes?

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.

Hi,

If you mean to add padding for attributes or their options, and thus change the layout, then unfortunately there is no such possibility, it will require a custom implementation.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.