fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

out of stock special html class

Hi, is there any way I can have a class for all out of stock variations?

Golam Kibria

Hi Dvora,

I am not clear about your query.

Do you want to add a custom class?

Thank You

Yes, I want to custom style the out of stock variants so I need a class name for them

Golam Kibria

Hi Dvora,

Currently, there is no option o add a custom class.

I would recommend adding custom CSS to our existing class.

Thank You

Golam Kibria

Hi Dvora,

Sorry for the late response.

Please try this one: .variable-item.disabled

Let me know if this helps reach your goal.

Thank You

It didnt work. I can’t use disabled as a class name, anything else I can use for them?

Golam Kibria

Hi Dvora,

Sorry for the inconvenience.

It should work.

Will you please explain what you are trying to achieve?

Try adding !important with your CSS.

Thank You

Golam Kibria

Hi Dvora,

Unfortunately, you cannot do this with CSS.

The premium version of the plugin can do this for you.

There is an option to enable clickable out-of-stock that will help you reach the goal.

Thank You